diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-07 03:19:28 -0500 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-07 03:19:28 -0500 |
| commit | bb59107bd06a6a252b3743f17e55e3c17896db35 (patch) | |
| tree | cb8ad8bbd25fe7d5db6cf734c33f4777843876b9 /libs/libck/putchar.c | |
| parent | b7b97d32cbb6fbc928078ebe3a00714cbbebea86 (diff) | |
moved kernel libc stuff to libs/libck/
Diffstat (limited to 'libs/libck/putchar.c')
| -rw-r--r-- | libs/libck/putchar.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/libck/putchar.c b/libs/libck/putchar.c new file mode 100644 index 0000000..c5a7976 --- /dev/null +++ b/libs/libck/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 |
