From 7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 8 Feb 2019 18:42:39 -0500 Subject: merge sources into single tree --- src/wchar/vfwprintf.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/wchar/vfwprintf.c (limited to 'src/wchar/vfwprintf.c') diff --git a/src/wchar/vfwprintf.c b/src/wchar/vfwprintf.c new file mode 100644 index 00000000..fbff917f --- /dev/null +++ b/src/wchar/vfwprintf.c @@ -0,0 +1,25 @@ +#include +#include "stdio.h" +#include "stdarg.h" +#include "stdlib.h" + +int vfwprintf(FILE * restrict stream, const wchar_t * restrict format, va_list arg) +{ + /* + va_list ap; + va_copy(ap, arg); + int len = vsnwprintf(NULL, 0, format, arg); + wchar_t *buf = malloc((len + 1) * sizeof(wchar_t)); + len = vsnwprintf(buf, len, format, ap); + va_end(ap); + len = (int)fwrite(buf, sizeof(*buf), len, stream); + free(buf); + return len; + */ + (void)stream; (void)format; (void)arg; + return 0; +} + +/* +STDC(199409) +*/ -- cgit v1.2.1