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