projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rearranged whitespace (and comments) in all the code!
[mmh]
/
sbr
/
strerror.c
1
/*
2
* strerror.c -- get error message string
3
*/
4
5
#include <h/mh.h>
6
7
extern int sys_nerr;
8
extern char *sys_errlist[];
9
10
11
char *
12
strerror (int errnum)
13
{
14
if (errnum > 0 && errnum < sys_nerr)
15
return sys_errlist[errnum];
16
else
17
return NULL;
18
}