summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vdprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/vdprintf.c')
-rw-r--r--lib/libc/stdio/vdprintf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/stdio/vdprintf.c b/lib/libc/stdio/vdprintf.c
new file mode 100644
index 00000000..66a041cc
--- /dev/null
+++ b/lib/libc/stdio/vdprintf.c
@@ -0,0 +1,12 @@
+#include <io.h>
+#include <stdio.h>
+
+int vdprintf(int fildes, const char *restrict format, va_list ap)
+{
+ int r;
+ FILE f;
+ f.fd = fildes;
+ f.type = _IONBF;
+ r = vfprintf(&f, format, ap);
+ return r;
+}