1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 #include <stdarg.h>
8 #include <wchar.h>
9
10 extern int __ms_vfwscanf_internal (
11 FILE * s,
12 const wchar_t * format,
13 va_list arg,
14 int (*func)(FILE * __restrict__, const wchar_t * __restrict__, ...))
15 asm("__argtos");
16
__ms_vfwscanf(FILE * __restrict__ stream,const wchar_t * __restrict__ format,va_list arg)17 int __ms_vfwscanf (FILE * __restrict__ stream,
18 const wchar_t * __restrict__ format, va_list arg)
19 {
20 int ret;
21
22 #if defined(_AMD64_) || defined(__x86_64__) || \
23 defined(_X86_) || defined(__i386__) || \
24 defined(_ARM_) || defined(__arm__) || \
25 defined (_ARM64_) || defined (__aarch64__)
26 ret = __ms_vfwscanf_internal (stream, format, arg, fwscanf);
27 #else
28 #error "unknown platform"
29 #endif
30
31 return ret;
32 }
33