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