home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
bootpd-2.zip
/
STRERROR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-07
|
389b
|
22 lines
/*
* strerror() - for those systems that don't have it yet.
* Doing it this way avoids yet another ifdef...
*/
/* These are part of the C library. (See perror.3) */
extern char *sys_errlist[];
extern int sys_nerr;
static char errmsg[80];
char *
strerror(en)
int en;
{
if ((0 <= en) && (en < sys_nerr))
return sys_errlist[en];
sprintf(errmsg, "Error %d", en);
return errmsg;
}