mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
0eccdd1c36
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@162 a592a061-630c-0410-9148-cb99ea01b6c8
25 lines
617 B
C
25 lines
617 B
C
/*****************************************************
|
|
* provides strerror()
|
|
* author Stephan Witt <stephan.witt@beusen.de>
|
|
*****************************************************/
|
|
|
|
#include <config.h>
|
|
|
|
// $Id: strerror.c,v 1.2 1999/10/02 16:21:10 larsbj Exp $
|
|
|
|
#if !defined(lint) && !defined(WITH_WARNINGS)
|
|
static char vcid[] = "$Id: strerror.c,v 1.2 1999/10/02 16:21:10 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 ;
|
|
}
|