aboutsummaryrefslogtreecommitdiffstats
path: root/libc/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/putchar.c')
-rw-r--r--libc/putchar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/putchar.c b/libc/putchar.c
new file mode 100644
index 0000000..c5a7976
--- /dev/null
+++ b/libc/putchar.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#include <arch/i386/tmtty.h>
+
+int putchar(int ic) {
+ char c = (char) ic;
+ terminal_write(&c, sizeof(c));
+ return ic;
+} \ No newline at end of file