Annotation of coherent/b/lib/libc/XSTDIO/perror.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * libc/stdio/perror.c
                      3:  * ANSI-compliant C standard i/o library.
                      4:  * perror()
                      5:  * ANSI 4.9.10.4.
                      6:  * Write an error message to stderr.
                      7:  */
                      8: 
                      9: #include <stdio.h>
                     10: #include <errno.h>
                     11: #include <string.h>
                     12: 
                     13: void
                     14: perror(s) const char *s;
                     15: {
                     16:        if (s != NULL && *s != '\0')
                     17:                fprintf(stderr, "%s: ", s);
                     18:        fprintf(stderr, "%s\n", strerror(errno));
                     19: }
                     20: 
                     21: /* end of libc/stdio/perror.c */

unix.superglobalmegacorp.com

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