fix behavior of printf with alt-form octal, zero precision, zero value
[oweals/musl.git] / src / stdio / fwscanf.c
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include <wchar.h>
4 #include "libc.h"
5
6 int fwscanf(FILE *restrict f, const wchar_t *restrict fmt, ...)
7 {
8         int ret;
9         va_list ap;
10         va_start(ap, fmt);
11         ret = vfwscanf(f, fmt, ap);
12         va_end(ap);
13         return ret;
14 }
15
16 weak_alias(fwscanf,__isoc99_fwscanf);