summaryrefslogtreecommitdiff
path: root/kc/core/stdio.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2026-05-24 11:09:31 +0000
committerAda Christine <adachristine18@gmail.com>2026-05-24 11:09:31 +0000
commitd07bd08dd0446e8c41eccaccbb07e9112200e8ee (patch)
tree742a3f9d9d84c8ee55858b2ebc7e0e0f8c714c7c /kc/core/stdio.c
parent9aaf21bf10d00ec12b24499817e3e91dca08c461 (diff)
rename and move, function renames in stdio
Diffstat (limited to 'kc/core/stdio.c')
-rw-r--r--kc/core/stdio.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kc/core/stdio.c b/kc/core/stdio.c
new file mode 100644
index 0000000..66c539f
--- /dev/null
+++ b/kc/core/stdio.c
@@ -0,0 +1,18 @@
+#include "serial.h"
+#include "video.h"
+
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <libc/stdio.h>
+#include <libc/string.h>
+
+FILE *stdout;
+
+int fputc(int c, FILE *f)
+{
+ (void)f;
+ video_putchar(c);
+ return serial_putchar(c);
+}
+