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