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 <stdio.h>
9
10 extern int __ms_vsscanf_internal (
11 const char * s,
12 const char * format,
13 va_list arg,
14 int (*func)(const char * __restrict__, const char * __restrict__, ...))
15 asm("__argtos");
16
__ms_vsscanf(const char * __restrict__ s,const char * __restrict__ format,va_list arg)17 int __ms_vsscanf (const char * __restrict__ s,
18 const char * __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_vsscanf_internal (s, format, arg, sscanf);
27 #else
28 #error "unknown platform"
29 #endif
30
31 return ret;
32 }
33