aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/stdio/mingw_wscanf.c
blob: 6202a79b504b59dc1d7eb08b9f0dc0b898f4ed67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

extern int __mingw_vfwscanf (FILE *stream, const wchar_t *format, va_list argp);

int __mingw_wscanf (const wchar_t *format, ...);
int __mingw_vwscanf (const wchar_t *format, va_list argp);

int
__mingw_wscanf (const wchar_t *format, ...)
{
  va_list argp;
  int r;

  va_start (argp, format);
  r = __mingw_vfwscanf (stdin, format, argp);
  va_end (argp);

  return r;
}

int
__mingw_vwscanf (const wchar_t *format, va_list argp)
{
  return __mingw_vfwscanf (stdin, format, argp);
}