blob: 7ca72b0bb60b18fd053583d49f63806ba63cd532 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "libioP.h"
#include <errno.h>
#include <string.h>
#ifndef errno
extern int errno;
#endif
#ifndef _IO_strerror
extern char* _IO_strerror __P((int));
#endif
void
_IO_perror (s)
const char *s;
{
char *error = _IO_strerror (errno);
if (s != NULL && *s != '\0')
_IO_fprintf (_IO_stderr, "%s:", s);
_IO_fprintf (_IO_stderr, "%s\n", error ? error : "");
}
|