shithub: scc

ref: 43e3393ad7bb57bef89fedfe2cd4f48c33588bcc
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++;
}