scc

simple C compiler
git clone git@git.2f30.org/scc.git
Log | Files | Refs | README | LICENSE

fputs.c (145B)


      1 
      2 #include <stdio.h>
      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 }