File:  [MW Coherent from dump] / coherent / b / lib / libc / XSTDIO / perror.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:36 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * libc/stdio/perror.c
 * ANSI-compliant C standard i/o library.
 * perror()
 * ANSI 4.9.10.4.
 * Write an error message to stderr.
 */

#include <stdio.h>
#include <errno.h>
#include <string.h>

void
perror(s) const char *s;
{
	if (s != NULL && *s != '\0')
		fprintf(stderr, "%s: ", s);
	fprintf(stderr, "%s\n", strerror(errno));
}

/* 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.