diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-17 22:55:43 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-17 22:55:43 -0400 |
commit | c35bb6645f32bc684dc3da99d4d71c4ead2d4717 (patch) | |
tree | b0984f88eee7060f73d77eb21d2d3e75b3e2e233 /src/stdio/wprintf.c | |
parent | a012aa879fb790c8e0446638b206b7f34e92c51e (diff) | |
download | musl-c35bb6645f32bc684dc3da99d4d71c4ead2d4717.tar.gz musl-c35bb6645f32bc684dc3da99d4d71c4ead2d4717.tar.bz2 musl-c35bb6645f32bc684dc3da99d4d71c4ead2d4717.tar.xz musl-c35bb6645f32bc684dc3da99d4d71c4ead2d4717.zip |
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.
Diffstat (limited to 'src/stdio/wprintf.c')
-rw-r--r-- | src/stdio/wprintf.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stdio/wprintf.c b/src/stdio/wprintf.c new file mode 100644 index 00000000..20ca61a0 --- /dev/null +++ b/src/stdio/wprintf.c @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <stdarg.h> +#include <wchar.h> + +int wprintf(const wchar_t *fmt, ...) +{ + int ret; + va_list ap; + va_start(ap, fmt); + ret = vwprintf(fmt, ap); + va_end(ap); + return ret; +} |