Initial revision
This commit is contained in:
16
lang/cem/libcc.ansi/stdio/perror.c
Normal file
16
lang/cem/libcc.ansi/stdio/perror.c
Normal 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));
|
||||
}
|
||||
Reference in New Issue
Block a user