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