Annotation of coherent/d/lib/libc/stdio/puts.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * C input/output library.
                      3:  * puts()
                      4:  * ANSI 4.9.7.10.
                      5:  * Write string s to stdout.
                      6:  * Append newline.
                      7:  */
                      8: 
                      9: #include <stdio.h>
                     10: 
                     11: /* Should be "const char *s;". */
                     12: int
                     13: puts(s) register char *s;
                     14: {
                     15:        while (*s)
                     16:                if (putchar(*s++) == EOF && ferror(stdout))
                     17:                        return EOF;
                     18:        if (putchar('\n') == EOF)
                     19:                return EOF;
                     20:        return 1;
                     21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.