projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use %etcdir% for spacing instead of hardcoding
[mmh]
/
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
}