summaryrefslogtreecommitdiffstats
path: root/usr/klibc/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/putchar.c')
-rw-r--r--usr/klibc/putchar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/klibc/putchar.c b/usr/klibc/putchar.c
new file mode 100644
index 0000000..e2224ca
--- /dev/null
+++ b/usr/klibc/putchar.c
@@ -0,0 +1,15 @@
+/*
+ * putchar.c
+ *
+ * - gcc wants this
+ */
+
+#include <stdio.h>
+
+#undef putchar /* Defined as a macro */
+int putchar(int);
+
+int putchar(int c)
+{
+ return fputc(c, stdout);
+}