summaryrefslogtreecommitdiff
path: root/src/wchar/vfwscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/vfwscanf.c')
-rw-r--r--src/wchar/vfwscanf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wchar/vfwscanf.c b/src/wchar/vfwscanf.c
index 75451ac6..d2e90c5f 100644
--- a/src/wchar/vfwscanf.c
+++ b/src/wchar/vfwscanf.c
@@ -1,8 +1,15 @@
#include "stdio.h"
#include <wchar.h>
+#include "nonstd/io.h"
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;
}
/*