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