home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
libg++-2.5.3-src.lha
/
src
/
amiga
/
libg++-2.5.3
/
libg++-2.5.3-amiga
/
libio
/
ioperror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-05
|
381b
|
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 : "");
}