musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/vwprintf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011年03月17日 22:55:43 -0400
committerRich Felker <dalias@aerifal.cx>2011年03月17日 22:55:43 -0400
commitc35bb6645f32bc684dc3da99d4d71c4ead2d4717 (patch)
treeb0984f88eee7060f73d77eb21d2d3e75b3e2e233 /src/stdio/vwprintf.c
parenta012aa879fb790c8e0446638b206b7f34e92c51e (diff)
downloadmusl-c35bb6645f32bc684dc3da99d4d71c4ead2d4717.tar.gz
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/vwprintf.c')
-rw-r--r--src/stdio/vwprintf.c 7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdio/vwprintf.c b/src/stdio/vwprintf.c
new file mode 100644
index 00000000..c1923e62
--- /dev/null
+++ b/src/stdio/vwprintf.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+#include <wchar.h>
+
+int vwprintf(const wchar_t *fmt, va_list ap)
+{
+ return vfwprintf(stdout, fmt, ap);
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 20:48:39 +0000

AltStyle によって変換されたページ (->オリジナル) /