diff options
Diffstat (limited to 'src/user/lib/string/strerror.c')
-rw-r--r-- | src/user/lib/string/strerror.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/user/lib/string/strerror.c b/src/user/lib/string/strerror.c deleted file mode 100644 index c838299..0000000 --- a/src/user/lib/string/strerror.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <string.h> - -static const char *errstr[] = { -# define E(n, str) [n] = str, -# include <__errno.h> -# undef E -}; - -char *strerror(int n) { - if (0 <= n && n * sizeof(*errstr) < sizeof(errstr) && errstr[n]) - return (char*)errstr[n]; - return "unknown error"; -} |