scc

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

fputs.c (157B)


      1 #include <stdio.h>
      2 #undef fputs
      3 
      4 int
      5 fputs(const char * restrict bp, FILE * restrict fp)
      6 {
      7 	int r, ch;
      8 
      9 	while (ch = *bp++)
     10 		r = putc(ch, fp);
     11 	return r;
     12 }