]> gcc.gnu.org Git - gcc.git/blame - libio/ioperror.c
* gen-params (CONFIG_NM): test ... -o ... is not portable
[gcc.git] / libio / ioperror.c
CommitLineData
6599da04
JM
1#include "libioP.h"
2#include <errno.h>
3#include <string.h>
4#ifndef errno
5extern int errno;
6#endif
7
8#ifndef _IO_strerror
9extern char* _IO_strerror __P((int));
10#endif
11
12void
e693cc28
UD
13_IO_perror (s)
14 const char *s;
6599da04
JM
15{
16 char *error = _IO_strerror (errno);
17
18 if (s != NULL && *s != '\0')
19 _IO_fprintf (_IO_stderr, "%s:", s);
20
21 _IO_fprintf (_IO_stderr, "%s\n", error ? error : "");
22}
This page took 0.097273 seconds and 5 git commands to generate.