]> diplodocus.org Git - nmh/blob - sbr/strerror.c
Sigh. I put the documentation about the -tls switch in the long description,
[nmh] / sbr / strerror.c
1
2 /*
3 * strerror.c -- get error message string
4 */
5
6 #include <h/mh.h>
7
8 extern int sys_nerr;
9 extern char *sys_errlist[];
10
11
12 char *
13 strerror (int errnum)
14 {
15 if (errnum > 0 && errnum < sys_nerr)
16 return sys_errlist[errnum];
17 else
18 return NULL;
19 }