| 1 | #include <stdarg.h> |
| 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
| 4 | |
| 5 | extern int __mingw_vfscanf (FILE *stream, const char *format, va_list argp); |
| 6 | |
| 7 | int __mingw_fscanf (FILE *stream, const char *format, ...); |
| 8 | |
| 9 | int |
| 10 | __mingw_fscanf (FILE *stream, const char *format, ...) |
| 11 | { |
| 12 | va_list argp; |
| 13 | int r; |
| 14 | |
| 15 | va_start (argp, format); |
| 16 | r = __mingw_vfscanf (stream, format, argp); |
| 17 | va_end (argp); |
| 18 | |
| 19 | return r; |
| 20 | } |
| 21 |