summaryrefslogtreecommitdiff
path: root/src/user/lib/libc/include/string.h
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
commit499ca6c243b05da176a2d4bd9a2317f0b28afc7f (patch)
treef55ff788632b017ab8de83b71ad02b0998e1dda5 /src/user/lib/libc/include/string.h
parent7b466345af0d3a7dc5622617ce443a90c64e34a4 (diff)
downloadTCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.tar.gz
TCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.zip
Introducing FWIK, the userland C++ framework. Far from complete.
Diffstat (limited to 'src/user/lib/libc/include/string.h')
-rw-r--r--src/user/lib/libc/include/string.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/user/lib/libc/include/string.h b/src/user/lib/libc/include/string.h
new file mode 100644
index 0000000..fbe3ade
--- /dev/null
+++ b/src/user/lib/libc/include/string.h
@@ -0,0 +1,27 @@
+#ifndef DEF_LIB_STRING_H
+#define DEF_LIB_STRING_H
+
+#include <types.h>
+
+#ifdef __cplusplus
+extern "C" { namespace libc {
+#endif
+
+void *memcpy(void *dest, const void *src, int count);
+void *memset(void *dest, int val, int count);
+uint16_t *memsetw(uint16_t *dest, uint16_t val, int count);
+
+int strlen(const char *str);
+char *strcpy(char *dest, const char *src);
+char *strdup(const char *src);
+char *strchr(const char *str, int c);
+char *strcat(char *dest, const char *src);
+int strcmp(const char *s1, const char *s2);
+
+#ifdef __cplusplus
+} }
+#endif
+
+
+#endif
+