summaryrefslogtreecommitdiff
path: root/libc/stdio/fwprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/fwprintf.c')
-rw-r--r--libc/stdio/fwprintf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/stdio/fwprintf.c b/libc/stdio/fwprintf.c
new file mode 100644
index 000000000..fa5a6bdf6
--- /dev/null
+++ b/libc/stdio/fwprintf.c
@@ -0,0 +1,22 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
+ *
+ * GNU Library General Public License (LGPL) version 2 or later.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+
+#include "_stdio.h"
+#include <stdarg.h>
+#include <wchar.h>
+
+int fwprintf(FILE * __restrict stream, const wchar_t * __restrict format, ...)
+{
+ va_list arg;
+ int rv;
+
+ va_start(arg, format);
+ rv = vfwprintf(stream, format, arg);
+ va_end(arg);
+
+ return rv;
+}