FENIX_libc/stdio/putchar.c
2020-02-11 23:23:27 -06:00

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