shithub: scc

ref: 9c0b13d8c0966d5e1eaaf878c40334f88fba7225
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++;
}