From 50bc91ab29672a2a99cd97c0d560d1ccc69f1cf6 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 17 Jan 2021 20:15:17 -0600 Subject: include: create basic C library functions Create the basic C library functions for use inside the kernel. Signed-off-by: Danny Holman --- include/kernel/string.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/kernel/string.h (limited to 'include/kernel/string.h') diff --git a/include/kernel/string.h b/include/kernel/string.h new file mode 100644 index 0000000..8761211 --- /dev/null +++ b/include/kernel/string.h @@ -0,0 +1,12 @@ +#ifndef STRING_H +#define STRING_H + +#include + +int memcmp(const void *str1, const void *str2, size_t n); +void* memcpy(void* __restrict dest, const void* __restrict src, size_t n); +void* memmove(void* __restrict dest, const void* __restrict src, size_t n); +void* memset(void *str, int c, size_t n); +size_t strlen(const char *str); + +#endif -- cgit v1.2.3