From 65a111a543f49c645ec21ef44f289c29ccb27e8d Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Thu, 17 Mar 2022 14:03:12 +0000 Subject: pulled out kprintf() and friends into lib/ --- kc/core/kstdio.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 kc/core/kstdio.c (limited to 'kc/core/kstdio.c') 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 + +#include +#include + +FILE *kstdout; + +int kfputc(int c, FILE *f) +{ + (void)f; + return serial_putchar(c); +} + -- cgit v1.3.1-1-g115d