summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux/latest/com32/lib/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux/latest/com32/lib/strerror.c')
-rw-r--r--contrib/syslinux/latest/com32/lib/strerror.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/contrib/syslinux/latest/com32/lib/strerror.c b/contrib/syslinux/latest/com32/lib/strerror.c
deleted file mode 100644
index 8dbe74a..0000000
--- a/contrib/syslinux/latest/com32/lib/strerror.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * strerror.c
- */
-
-#include <string.h>
-
-char *strerror(int errnum)
-{
- static char message[32] = "error "; /* enough for error 2^63-1 */
-
- char numbuf[32];
- char *p;
-
- p = numbuf + sizeof numbuf;
- *--p = '\0';
-
- do {
- *--p = (errnum % 10) + '0';
- errnum /= 10;
- } while (errnum);
-
- return (char *)memcpy(message + 6, p, (numbuf + sizeof numbuf) - p);
-}