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