home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compiler / small_c / byte_sc / fputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-10-04  |  384 b   |  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.