aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/stdio/mingw_fscanf.c
blob: 0c5192a5c87d3e1560e7c0792bea037bb2883fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

extern int __mingw_vfscanf (FILE *stream, const char *format, va_list argp);

int __mingw_fscanf (FILE *stream, const char *format, ...);

int
__mingw_fscanf (FILE *stream, const char *format, ...)
{
  va_list argp;
  int r;

  va_start (argp, format);
  r = __mingw_vfscanf (stream, format, argp);
  va_end (argp);

  return r;
}