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