shithub: scc

ref: 8b0c12fda4008321ef8cbd61f9af24e0e6464e74
dir: /src/libc/stdio/getc.c/

View raw version
#include <stdio.h>

#undef getc

int
getc(FILE *fp)
{
	return (fp->rp >= fp->wp) ?  __getc(fp) : *fp->rp++;
}