int fputc(int ch, FILE *f) { if ((f == stdout) || (f == stderr)) { DBGU_PutChar(ch); return ch; } else { return EOF; } }