summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/string.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/kernel/string.c b/kernel/string.c
new file mode 100644
index 0000000..3610909
--- /dev/null
+++ b/kernel/string.c
@@ -0,0 +1,24 @@
+#include <kernel/string.h>
+
+int memcmp(const void *str1, const void *str2, size_t n) {
+ return 0;
+}
+
+void* memcpy(void* __restrict dest, const void* __restrict src, size_t n) {
+ return NULL;
+}
+
+void* memmove(void* __restrict dest, const void* __restrict src, size_t n) {
+ return NULL;
+}
+
+void* memset(void *str, int c, size_t n) {
+ return NULL;
+}
+
+size_t strlen(const char *str) {
+ size_t i = 0;
+ while (str[i] != '\0')
+ i++;
+ return i;
+}