scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

getc.c (109B)


      1 #include <stdio.h>
      2 #undef getc
      3 
      4 int
      5 getc(FILE *fp)
      6 {
      7 	return (fp->rp >= fp->wp) ?  __getc(fp) : *fp->rp++;
      8 }