scc

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

puts.c (132B)


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