diff options
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/printf.h | 3 | ||||
-rw-r--r-- | kernel/include/stdlib.h | 7 | ||||
-rw-r--r-- | kernel/include/string.h | 13 |
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); |