summaryrefslogtreecommitdiff
path: root/src/stdio/wscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/wscanf.c')
-rw-r--r--src/stdio/wscanf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stdio/wscanf.c b/src/stdio/wscanf.c
new file mode 100644
index 00000000..34b58846
--- /dev/null
+++ b/src/stdio/wscanf.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <stdarg.h>
+#include <wchar.h>
+
+int wscanf(const wchar_t *fmt, ...)
+{
+ int ret;
+ va_list ap;
+ va_start(ap, fmt);
+ ret = vwscanf(fmt, ap);
+ va_end(ap);
+ return ret;
+}