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