diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-06-15 22:36:39 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-06-15 22:36:39 -0400 |
| commit | a78033acc941fc4bcf6188f1d48fd8e012673fff (patch) | |
| tree | ac92adae5e40274fd9e0b78352a24840cc88eab4 /kernel/std/putchar.c | |
initial commit
Diffstat (limited to 'kernel/std/putchar.c')
| -rw-r--r-- | kernel/std/putchar.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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 |
