summaryrefslogtreecommitdiff
path: root/src/common/include/string.h
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-01 12:20:45 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-01 12:20:45 +0200
commit5cac9acd3aedc8043d4272d93c56805c46ff6214 (patch)
treeba9eb5ef86f7cf7afd4f7ab02de1d6bb86715632 /src/common/include/string.h
parent66b32658d2e5aa99493dcb3abcb73cdb2cc6f0b5 (diff)
downloadTCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.tar.gz
TCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.zip
Some cleanup ; relocated the kernel at 0xC0000000
Diffstat (limited to 'src/common/include/string.h')
-rw-r--r--src/common/include/string.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/include/string.h b/src/common/include/string.h
new file mode 100644
index 0000000..a41459e
--- /dev/null
+++ b/src/common/include/string.h
@@ -0,0 +1,14 @@
+#ifndef _DEF_STRING_H
+#define _DEF_STRING_H
+
+// #include <stdlib.h>
+#include <types.h>
+
+int strlen(const char *str);
+char *strcpy(char *dest, const char *src);
+// char *strdup(const char *src); // uses malloc, that's bad
+char *strchr(const char *str, char c);
+char *strcat(char *dest, const char *src);
+int strcmp(const char *s1, const char *s2);
+
+#endif