From c758cc47d8cdf1e6a161efb0d9d46fad6bb1e9e4 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 15:27:39 -0400 Subject: implement --- src/wchar/vswprintf.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') 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 #include +#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; } /* -- cgit v1.2.1