summaryrefslogtreecommitdiff
path: root/src/wchar/vfwscanf.c
blob: bc3f6e8c4cc0033cd9b9138a8f9c170ec63cde17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <wchar.h>
#include "stdio/_stdio.h"

#if __STDC_VERSION__ < 199901L
	static
#endif

int vfwscanf(FILE * restrict stream, const wchar_t * restrict format, va_list arg)
{
	int ret = 0;
	struct io_options opt = {0};
	opt.fnname = __func__;
	opt.stream = stream;
	ret = __scanf(&opt, (const char*)format, arg);
	return ret;
}

/*
STDC(199901)
*/