source: trunk/third/nmh/sbr/strerror.c @ 12455

Revision 12455, 308 bytes checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1
2/*
3 * strerror.c -- get error message string
4 *
5 * $Id: strerror.c,v 1.1.1.1 1999-02-07 18:14:10 danw Exp $
6 */
7
8#include <h/mh.h>
9
10extern int sys_nerr;
11extern char *sys_errlist[];
12
13
14char *
15strerror (int errnum)
16{
17   if (errnum > 0 && errnum < sys_nerr)
18        return sys_errlist[errnum];
19   else
20        return NULL;
21}
Note: See TracBrowser for help on using the repository browser.