* patch #3968: Move the add() function from its own file (add.c) and
[mmh] / sbr / strerror.c
1
2 /*
3  * strerror.c -- get error message string
4  *
5  * $Id$
6  *
7  * This code is Copyright (c) 2002, by the authors of nmh.  See the
8  * COPYRIGHT file in the root directory of the nmh distribution for
9  * complete copyright information.
10  */
11
12 #include <h/mh.h>
13
14 extern int sys_nerr;
15 extern char *sys_errlist[];
16
17
18 char *
19 strerror (int errnum)
20 {
21    if (errnum > 0 && errnum < sys_nerr)
22         return sys_errlist[errnum];
23    else
24         return NULL;
25 }