zig/lib/libc/mingw/stdio/mingw_swscanf.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

21 lines
401 B
C

#include <stdarg.h>
#include <stdlib.h>
extern int __mingw_vswscanf (const wchar_t *buf, const wchar_t *format, va_list argp);
int __mingw_swscanf (const wchar_t *buf, const wchar_t *format, ...);
int
__mingw_swscanf (const wchar_t *buf, const wchar_t *format, ...)
{
va_list argp;
int r;
va_start (argp, format);
r = __mingw_vswscanf (buf, format, argp);
va_end (argp);
return r;
}