summaryrefslogtreecommitdiff
path: root/src/wchar
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar')
-rw-r--r--src/wchar/vswprintf.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/wchar/vswprintf.c b/src/wchar/vswprintf.c
index 63169a59..429e0a53 100644
--- a/src/wchar/vswprintf.c
+++ b/src/wchar/vswprintf.c
@@ -1,10 +1,16 @@
-#include "stdarg.h"
+#include <stdarg.h>
#include <wchar.h>
+#include "stdio/_stdio.h"
int vswprintf(wchar_t * restrict s, size_t n, const wchar_t * restrict format, va_list arg)
{
- (void)s; (void)n; (void)format; (void)arg;
- return -1;
+ int ret = 0;
+ struct io_options opt = {0};
+ opt.fnname = "vswprintf";
+ opt.wstring = s;
+ opt.maxlen = n;
+ ret = __printf(&opt, (const char*)format, arg);
+ return ret;
}
/*