scc

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

putc.c (128B)


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