From c9dccc2fa3eca72b65da1ebc4cf817c3c86cf500 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 10 Jul 2025 02:33:45 -0400 Subject: usr: libc: Add strdup() - Implement the strdup() string routine to duplicate strings in a new buffer. Signed-off-by: Ian Moffett --- lib/libc/include/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/include') diff --git a/lib/libc/include/string.h b/lib/libc/include/string.h index 50981c4..4ab1e45 100644 --- a/lib/libc/include/string.h +++ b/lib/libc/include/string.h @@ -35,6 +35,7 @@ size_t strlen(const char *s); char *strtok(char *s, const char *delim); +char *strdup(const char *s); void *memset(void *dst, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); -- cgit v1.2.3