From c35bb6645f32bc684dc3da99d4d71c4ead2d4717 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Mar 2011 22:55:43 -0400 Subject: implement wprintf family of functions this implementation is extremely ugly and inefficient, but it avoids a good deal of code duplication and bloat. it may be cleaned up later to eliminate the remaining code duplication and some of the warts, but i don't really care about its performance. note that swprintf is not yet implemented. --- src/stdio/fwprintf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/stdio/fwprintf.c (limited to 'src/stdio/fwprintf.c') diff --git a/src/stdio/fwprintf.c b/src/stdio/fwprintf.c new file mode 100644 index 00000000..26d9729a --- /dev/null +++ b/src/stdio/fwprintf.c @@ -0,0 +1,13 @@ +#include +#include +#include + +int fwprintf(FILE *f, const wchar_t *fmt, ...) +{ + int ret; + va_list ap; + va_start(ap, fmt); + ret = vfwprintf(f, fmt, ap); + va_end(ap); + return ret; +} -- cgit v1.2.1