29 lines
545 B
C
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);
|
||
|
}
|
||
|
|