#include #if defined(__is_libk) #include #include #else #include #endif int putchar(int c) { #if defined(__is_libk) Kernel::panic("Please use kprint() instead of stdio"); char ch = (char)c; terminal_write(&ch, sizeof(ch)); #else abort(); #endif return c; }