summaryrefslogtreecommitdiff
path: root/src/user/lib/string/strerror.c
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /src/user/lib/string/strerror.c
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'src/user/lib/string/strerror.c')
-rw-r--r--src/user/lib/string/strerror.c13
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";
-}