Syncboot/libc/stdio/putchar.c
2019-04-03 17:46:58 -04:00

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;
}