zig/lib/libc/mingw/stdio/mingw_wscanf.c
Andrew Kelley 49d1a4c562 move lib dirs to lib subdir
also start prefering NtDll API. so far:
 * NtQueryInformationFile
 * NtClose

adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00

29 lines
545 B
C

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
extern int __mingw_vfwscanf (FILE *stream, const wchar_t *format, va_list argp);
int __mingw_wscanf (const wchar_t *format, ...);
int __mingw_vwscanf (const wchar_t *format, va_list argp);
int
__mingw_wscanf (const wchar_t *format, ...)
{
va_list argp;
int r;
va_start (argp, format);
r = __mingw_vfwscanf (stdin, format, argp);
va_end (argp);
return r;
}
int
__mingw_vwscanf (const wchar_t *format, va_list argp)
{
return __mingw_vfwscanf (stdin, format, argp);
}