aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2014-11-30 20:05:47 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2014-11-30 20:05:47 +0100
commita375561ca15a99dd7024e5b8170a3c8fcf25b892 (patch)
tree06ec9ff45e49400d67f73ce20b3236d8551916a5 /kernel/include
parent54e7efbbd0e0c88d99bb6bddb82e9fc8d90eae50 (diff)
downloadmacroscope-a375561ca15a99dd7024e5b8170a3c8fcf25b892.tar.gz
macroscope-a375561ca15a99dd7024e5b8170a3c8fcf25b892.zip
More library functions & renaming.
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/printf.h3
-rw-r--r--kernel/include/stdlib.h7
-rw-r--r--kernel/include/string.h13
3 files changed, 15 insertions, 8 deletions
diff --git a/kernel/include/printf.h b/kernel/include/printf.h
index 4569827..b37816d 100644
--- a/kernel/include/printf.h
+++ b/kernel/include/printf.h
@@ -1,6 +1,7 @@
#pragma once
-#include <stdlib.h>
+#include <stddef.h>
+#include <stdint.h>
#include <stdarg.h>
int snprintf(char* s, size_t n, const char* format, ...);
diff --git a/kernel/include/stdlib.h b/kernel/include/stdlib.h
deleted file mode 100644
index 601e7c4..0000000
--- a/kernel/include/stdlib.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-
-#include <stddef.h>
-#include <stdint.h>
-
-size_t strlen(const char*);
-
diff --git a/kernel/include/string.h b/kernel/include/string.h
new file mode 100644
index 0000000..1eb3eef
--- /dev/null
+++ b/kernel/include/string.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdint.h>
+
+void *memcpy(void *dest, const void *src, int count);
+void *memset(void *dest, int val, int count);
+
+size_t strlen(const char *str);
+char *strchr(const char *str, char c);
+char *strcpy(char *dest, const char *src);
+char *strcat(char *dest, const char *src);
+int strcmp(const char *s1, const char *s2);