15 lines
237 B
C
15 lines
237 B
C
#include <stdio.h>
|
|
|
|
#if defined(__is_libk)
|
|
#include <kernel/tty.h>
|
|
#endif
|
|
|
|
int putchar(int ic) {
|
|
#if defined(__is_libk)
|
|
char c = (char)ic;
|
|
term_write(&c, sizeof(c));
|
|
#else
|
|
// TODO: Implement stdio & the write call
|
|
#endif
|
|
return ic;
|
|
} |