|
|
1.1 root 1: /*
2: * C input/output library.
3: * fputs()
4: * ANSI 4.9.7.4.
5: * Write string s to stream.
6: */
7:
8: #include <stdio.h>
9:
10: /* Should be "const char * s". */
11: int
12: fputs(s, stream) register 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 fputs.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.