Initial revision

This commit is contained in:
eck
1989-05-30 13:34:25 +00:00
parent 8f2fe1c003
commit 69f02d8abc
51 changed files with 2589 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/*
* perror.c - print an error message on the standard error output
*/
/* $Header$ */
#include <errno.h>
#include <stdio.h>
#include <string.h>
void
perror(const char *s)
{
if (s && *s)
(void) fprintf(stderr,"%s: ", s);
(void) fprintf(stderr,"%s\n", strerror(errno));
}