Syncboot/libc/stdio/putchar.c

15 lines
237 B
C
Raw Normal View History

2019-04-03 21:46:58 +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;
2019-04-01 01:18:48 +00:00
}