]> diplodocus.org Git - nmh/blob - sbr/strerror.c
* I had alphabetized the --configure options in the --help output
[nmh] / sbr / strerror.c
1
2 /*
3 * strerror.c -- get error message string
4 *
5 * $Id$
6 */
7
8 #include <h/mh.h>
9
10 extern int sys_nerr;
11 extern char *sys_errlist[];
12
13
14 char *
15 strerror (int errnum)
16 {
17 if (errnum > 0 && errnum < sys_nerr)
18 return sys_errlist[errnum];
19 else
20 return NULL;
21 }