home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
PERROR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
371b
|
25 lines
/* originally from Dale Schumacher's dLibs */
/*
* standard "print error message" function
*/
#include <stdio.h>
#include <errno.h>
extern char *strerror();
void perror(msg)
const char *msg;
{
if(msg && *msg)
{
fputs(msg, stderr);
fputs(": ", stderr);
}
if(msg = strerror(errno))
fputs(msg, stderr);
fputs(".\n", stderr);
}