]> git.lyx.org Git - lyx.git/blob - src/support/strerror.c
Add string << operators for the other streams as well, and removes
[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.3 2000/08/04 13:12:30 lasgouttes Exp $      */
9
10 #if !defined(lint) && !defined(WITH_WARNINGS)
11 static char vcid[] = "$Id: strerror.c,v 1.3 2000/08/04 13:12:30 lasgouttes 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 }