summaryrefslogtreecommitdiff
path: root/com32/lib/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/printf.c')
-rw-r--r--com32/lib/printf.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/com32/lib/printf.c b/com32/lib/printf.c
new file mode 100644
index 00000000..34237592
--- /dev/null
+++ b/com32/lib/printf.c
@@ -0,0 +1,19 @@
+/*
+ * printf.c
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+#define BUFFER_SIZE 16384
+
+int printf(const char *format, ...)
+{
+ va_list ap;
+ int rv;
+
+ va_start(ap, format);
+ rv = vfprintf(stdout, format, ap);
+ va_end(ap);
+ return rv;
+}