diff options
author | Danny Holman <dholman@gymli.org> | 2024-02-16 12:39:37 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-02-16 12:39:37 -0600 |
commit | e8b9376573a1defbdc5ba496523c9e94031818a5 (patch) | |
tree | f2d536efa29136a2b835e6dc2b371be43951064e /include/kernel | |
parent | 4a7562c22a7365342754beed8fdebab0350bd256 (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'include/kernel')
-rw-r--r-- | include/kernel/string.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |