home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gcc / libnixV0_8.lha / gnu / libnix-sources.lha / sources / nix / stdio / fputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  136 b   |  10 lines

  1. #include <stdio.h>
  2.  
  3. int fputs(const char *s,FILE *stream)
  4. {
  5.   while(*s)
  6.     if(fputc(*s++,stream)==EOF)
  7.       return EOF;
  8.   return 0;
  9. }
  10.