home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
lyx-0.13.2.tar.gz
/
lyx-0.13.2.tar
/
lyx-0.13.2
/
src
/
strerror.C
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-23
|
625b
|
25 lines
/*****************************************************
* provides strerror()
* author Stephan Witt <stephan.witt@beusen.de>
*****************************************************/
#include <config.h>
// $Id: strerror.C,v 1.1.1.1 1998/04/23 16:02:57 larsbj Exp $
#if !defined(lint) && !defined(WITH_WARNINGS)
static char vcid[] = "$Id: strerror.C,v 1.1.1.1 1998/04/23 16:02:57 larsbj Exp $";
#endif /* lint */
extern int sys_nerr ;
extern char * sys_errlist [] ;
char * strerror (int errnum)
{
static char * errtext = "unknown errno" ;
if ( errnum < sys_nerr )
return sys_errlist [errnum] ;
return errtext ;
}