shithub: scc

ref: 6ac1bf55142759cdd9837f9c11103d1b0e4e15f7
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++;
}