home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 163_01 / fputs.c < prev    next >
Text File  |  1988-01-31  |  384b  |  14 lines

  1. /*
  2. ** put a string to a stream file
  3. */
  4. extern int fputc();
  5.  
  6. fputs(s, stream) char *s; int *stream; {
  7.   char ch, *str;
  8.   str=s;
  9.   while(ch=*s++) {
  10.     if(fputc(ch, stream) == -1) return -1;
  11.     }
  12.   return str;
  13.   }
  14.