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