scc

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

puts.c (131B)


      1 #include <stdio.h>
      2 #undef puts
      3 
      4 int
      5 puts(const char *str)
      6 {
      7 	int ch;
      8 
      9 	while (ch = *str++)
     10 		putchar(ch);
     11 	return putchar('\n');
     12 }