From e8b9376573a1defbdc5ba496523c9e94031818a5 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 16 Feb 2024 12:39:37 -0600 Subject: kernel: string: add more functions to string library Add more functions to the string library to process buffers and strings. Signed-off-by: Danny Holman --- include/kernel/string.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/kernel/string.h b/include/kernel/string.h index 8761211..f9a8eed 100644 --- a/include/kernel/string.h +++ b/include/kernel/string.h @@ -7,6 +7,11 @@ 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); +int strncmp(const char *str1, const char *str2, size_t n); +int strcmp(const char *str1, const char *str2); size_t strlen(const char *str); +char* strcpy(char* __restrict dest, const char* __restrict src); +char* strcat(char* __restrict dest, const char* __restrict src); +char* strtok(char* __restrict str, const char* __restrict delim); #endif -- cgit v1.2.3