preserve errno across free
[musl.git] / src / stdio / wscanf.c
blob4dfec25dcf58ace4030ad3800d6018f73070c4a2
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include <wchar.h>
5 int wscanf(const wchar_t *restrict fmt, ...)
7 int ret;
8 va_list ap;
9 va_start(ap, fmt);
10 ret = vwscanf(fmt, ap);
11 va_end(ap);
12 return ret;
15 weak_alias(wscanf,__isoc99_wscanf);