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