From a78033acc941fc4bcf6188f1d48fd8e012673fff Mon Sep 17 00:00:00 2001 From: EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> Date: Thu, 15 Jun 2023 22:36:39 -0400 Subject: initial commit --- kernel/std/putchar.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 kernel/std/putchar.c (limited to 'kernel/std/putchar.c') diff --git a/kernel/std/putchar.c b/kernel/std/putchar.c new file mode 100644 index 0000000..c5a7976 --- /dev/null +++ b/kernel/std/putchar.c @@ -0,0 +1,9 @@ +#include + +#include + +int putchar(int ic) { + char c = (char) ic; + terminal_write(&c, sizeof(c)); + return ic; +} \ No newline at end of file -- cgit v1.2.3-70-g09d2