strerror.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
strerror.c (179B)
---
1 #include <errno.h>
2 #include <string.h>
3
4 #undef strerror
5
6 char *
7 strerror(int errnum)
8 {
9 if (errnum > EUNKNOWN || errnum <= 0)
10 errnum = EUNKNOWN;
11 return _sys_errlist[errnum];
12 }