36cb297b57
This reverts commit 56f77cf071
.
oops
16 lines
246 B
C
Executable file
16 lines
246 B
C
Executable file
#include <stdio.h>
|
|
|
|
#ifdef __is_libk
|
|
#include <kernel/tty.h>
|
|
#endif
|
|
|
|
int putchar(int ic) {
|
|
#ifdef __is_libk
|
|
char c = (char) ic;
|
|
term_write(&c, sizeof(c));
|
|
#else
|
|
/* TODO: Implement write system call to do this part */
|
|
#endif
|
|
|
|
return ic;
|
|
}
|