home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Ultimative Software-P…i Collection 1996 & 1997
/
Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso
/
g
/
gnu_c
/
gpplib22.zoo
/
iosrc
/
ioperror.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1993-11-30
|
381 b
|
23 lines
#include "libioP.h"
#include <errno.h>
#include <string.h>
#ifndef errno
extern int errno;
#endif
#ifndef _IO_strerror
extern char* _IO_strerror _PARAMS((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 : "");
}