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 <stdio.h>
8 #include <stdarg.h>
9
10 extern int __ms_vfscanf_internal (
11 FILE * s,
12 const char * format,
13 va_list arg,
14 int (*func)(FILE * __restrict__, const char * __restrict__, ...))
15 asm("__argtos");
16
__ms_vfscanf(FILE * __restrict__ stream,const char * __restrict__ format,va_list arg)17 int __ms_vfscanf (FILE * __restrict__ stream, const char * __restrict__ format, va_list arg)
18 {
19 int ret;
20
21 #if defined(_AMD64_) || defined(__x86_64__) || \
22 defined(_X86_) || defined(__i386__) || \
23 defined(_ARM_) || defined(__arm__) || \
24 defined(_ARM64_) || defined(__aarch64__)
25 ret = __ms_vfscanf_internal (stream, format, arg, fscanf);
26 #else
27 #error "unknown platform"
28 #endif
29
30 return ret;
31 }
32