home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / sources / nix / stdio / puts.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  168 b   |  12 lines

  1. #include <stdio.h>
  2.  
  3. int puts(const char *s)
  4. {
  5.   while(*s)
  6.     if(fputc(*s++,stdout)==EOF)
  7.       return EOF;
  8.   if(fputc('\n',stdout)==EOF)
  9.     return EOF;
  10.   return 0;
  11. }
  12.