diff options
| author | Emu <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-31 23:38:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-31 23:38:46 -0400 |
| commit | 27a44e0d79d1c6e01cd832feb8ad958d5999b5e3 (patch) | |
| tree | 3759eb02fcad7a609a064080d81b7c6f9dbec4c8 /libc/putchar.c | |
| parent | 639240bbf498195912d8ceb6cb396b89391a5b1b (diff) | |
| parent | fd5a1699592ce0afafc42ebf22401596abcdfc28 (diff) | |
Merge pull request #1 from EmulatedSeasons/limineswitch
Limineswitch
Diffstat (limited to 'libc/putchar.c')
| -rw-r--r-- | libc/putchar.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/putchar.c b/libc/putchar.c new file mode 100644 index 0000000..f0f5783 --- /dev/null +++ b/libc/putchar.c @@ -0,0 +1,11 @@ +#include <stdio.h>
+
+//#include <arch/i386/tmtty.h>
+#include <arch/x86_64/serial.h>
+
+int putchar(int ic) {
+ char c = (char) ic;
+ serial_putchar(c);
+ //terminal_write(&c, sizeof(c));
+ return ic;
+}
\ No newline at end of file |
