summaryrefslogtreecommitdiff
path: root/src/wchar/vswscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/vswscanf.c')
-rw-r--r--src/wchar/vswscanf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wchar/vswscanf.c b/src/wchar/vswscanf.c
index b0896b75..b0f1271a 100644
--- a/src/wchar/vswscanf.c
+++ b/src/wchar/vswscanf.c
@@ -1,7 +1,14 @@
#include <wchar.h>
+#include "nonstd/io.h"
int vswscanf(const wchar_t * restrict s, const wchar_t * restrict format, va_list arg)
{
+ int ret = 0;
+ struct io_options opt = {0};
+ opt.fnname = __func__;
+ opt.string = (char*)s;
+ ret = __scanf(&opt, (const char*)format, arg);
+ return ret;
}
/*