home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
libc
/
strings
/
strerror.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-10-19
|
317 b
|
18 lines
/*
* strerror - map error number to descriptive string
*
* This version is obviously somewhat Unix-specific.
*/
char *
strerror(errnum)
int errnum;
{
extern int errno, sys_nerr;
extern char *sys_errlist[];
if (errnum > 0 && errnum < sys_nerr)
return(sys_errlist[errnum]);
else
return("unknown error");
}