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

22 lines
392 B
C

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
extern int __mingw_vfscanf (FILE *stream, const char *format, va_list argp);
int __mingw_fscanf (FILE *stream, const char *format, ...);
int
__mingw_fscanf (FILE *stream, const char *format, ...)
{
va_list argp;
int r;
va_start (argp, format);
r = __mingw_vfscanf (stream, format, argp);
va_end (argp);
return r;
}