]> git.lyx.org Git - lyx.git/blob - src/support/strerror.c
Add -enable-assertions to configure, cleanup assertions, fix crash in LyXFont::ascent...
[lyx.git] / src / support / strerror.c
1 /*****************************************************
2  * provides strerror()
3  * author Stephan Witt <stephan.witt@beusen.de>
4  *****************************************************/
5
6 #include <config.h>
7
8 //      $Id: strerror.c,v 1.2 1999/10/02 16:21:10 larsbj Exp $  
9
10 #if !defined(lint) && !defined(WITH_WARNINGS)
11 static char vcid[] = "$Id: strerror.c,v 1.2 1999/10/02 16:21:10 larsbj Exp $";
12 #endif /* lint */
13
14 extern  int     sys_nerr ;
15 extern  char *  sys_errlist [] ;
16
17 char * strerror (int errnum)
18 {
19         static  char *  errtext = "unknown errno" ;
20
21         if ( errnum < sys_nerr )
22                 return sys_errlist [errnum] ;
23         return errtext ;
24 }