From f42b520ffcb47176601d3537d5fc118321965201 Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Sun, 21 Apr 2024 04:13:59 -0400 Subject: libc: Add more string functions Signed-off-by: Kaimakan71 Signed-off-by: Ian Moffett --- lib/libc/include/string.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/libc/include') diff --git a/lib/libc/include/string.h b/lib/libc/include/string.h index e0360ae..1b270c7 100644 --- a/lib/libc/include/string.h +++ b/lib/libc/include/string.h @@ -31,7 +31,17 @@ #define _STRING_H #include +#include -size_t strlen(const char *s); +void *memcpy(void *dest, const void *src, size_t n); +void *memccpy(void *dest, const void *src, int c, size_t n); +void *memmove(void *dest, const void *src, size_t n); +void *memset(void *s, int c, size_t n); +int memcmp(const void *s1, const void *s2, size_t n); +void *memchr(const void *s, int c, size_t n); + +size_t strlen(const char *s); +int strcmp(const char *s1, const char *s2); +int strncmp(const char *s1, const char *s2, size_t n); #endif /* !_STRING_H */ -- cgit v1.2.3