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