ref: 7b1f9cd1dd2a5098a0b1323623dfb0695efc9503 dir: /lib/c/getc.c/
#include <stdio.h> #undef getc int getc(FILE *fp) { return (fp->rp >= fp->wp) ? __getc(fp) : *fp->rp++; }