zig/lib/libc/mingw/stdio/mingw_fwscanf.c
Andrew Kelley 9df0177f33 mingw: add the mingw stdio functions back
We would rather use the ucrt for these, but sometimes dependencies on
the mingw stdio functions creep in. 仕方ない.

The cost is only paid if they are used; otherwise the symbols are
garbage-collected at link time.
2024-01-08 11:52:38 -07:00

21 lines
405 B
C
Vendored

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