Sync/libc/stdio/putchar.c

15 lines
251 B
C
Raw Normal View History

2019-04-01 01:18:48 +00:00
#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;
}