|
|
1.1 ! root 1: /* ! 2: * libc/stdio/fputs.c ! 3: * ANSI-compliant C standard i/o library. ! 4: * fputs() ! 5: * ANSI 4.9.7.4. ! 6: * Write string s to stream. ! 7: */ ! 8: ! 9: #include <stdio.h> ! 10: ! 11: int ! 12: fputs(s, stream) register const char *s; register FILE *stream; ! 13: { ! 14: while (*s) ! 15: if (putc(*s++, stream) == EOF && ferror(stream)) ! 16: return EOF; ! 17: return 1; ! 18: } ! 19: ! 20: /* end of libc/stdio/fputs.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.