home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / SMALL_C / FPUTS.C < prev    next >
Text File  |  1987-10-04  |  384b  |  15 lines

  1. #define NOCCARGC  /* no arg count passing */
  2. #include stdio.h
  3. #include clib.def
  4. /*
  5. ** Write a string to fd. 
  6. ** Entry: string = Pointer to null-terminated string.
  7. **        fd     = File descriptor of pertinent file.
  8. */
  9. fputs(string,fd) char *string; int fd; {
  10.   while(*string)
  11.     if(fputc(*string++,fd)==EOF) return(EOF);
  12.   return(0);
  13.   }
  14.  
  15.