summaryrefslogtreecommitdiff
path: root/kc/core/kstdio.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-17 14:03:12 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-17 14:03:12 +0000
commit65a111a543f49c645ec21ef44f289c29ccb27e8d (patch)
treebb5442a95ae6ea7632299da9c3ca74f2866b871c /kc/core/kstdio.c
parent28ea7b987645e94566e9277e1c4086c58fa96225 (diff)
pulled out kprintf() and friends into lib/
Diffstat (limited to 'kc/core/kstdio.c')
-rw-r--r--kc/core/kstdio.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kc/core/kstdio.c b/kc/core/kstdio.c
new file mode 100644
index 0000000..2971b18
--- /dev/null
+++ b/kc/core/kstdio.c
@@ -0,0 +1,16 @@
+#include "kprint.h"
+#include "serial.h"
+
+#include <lib.h>
+
+#include <stdint.h>
+#include <stdbool.h>
+
+FILE *kstdout;
+
+int kfputc(int c, FILE *f)
+{
+ (void)f;
+ return serial_putchar(c);
+}
+