summaryrefslogtreecommitdiffstats
path: root/src/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/include/string.h b/src/include/string.h
index 123e70cf6..e02b5edb5 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -14,33 +14,8 @@
#ifndef ETHERBOOT_STRING_H
#define ETHERBOOT_STRING_H
-#include "stddef.h"
-#include "bits/string.h"
-
-
-/* *** FROM ctype.h *** */
-
-#define isdigit(c) ((c & 0x04) != 0)
-#define islower(c) ((c & 0x02) != 0)
-//#define isspace(c) ((c & 0x20) != 0)
-#define isupper(c) ((c & 0x01) != 0)
-
-static inline unsigned char tolower(unsigned char c)
-{
- if (isupper(c))
- c -= 'A'-'a';
- return c;
-}
-
-static inline unsigned char toupper(unsigned char c)
-{
- if (islower(c))
- c -= 'a'-'A';
- return c;
-}
-
-
-/* *** FROM string.h *** */
+#include <stddef.h>
+#include <bits/string.h>
int strnicmp(const char *s1, const char *s2, size_t len);
char * strcpy(char * dest,const char *src);