correctly handle write errors encountered by printf-family functions
[oweals/musl.git] / src / stdio / fscanf.c
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "libc.h"
4
5 int fscanf(FILE *restrict f, const char *restrict fmt, ...)
6 {
7         int ret;
8         va_list ap;
9         va_start(ap, fmt);
10         ret = vfscanf(f, fmt, ap);
11         va_end(ap);
12         return ret;
13 }
14
15 weak_alias(fscanf, __isoc99_fscanf);