From 939c4c7d6c9bd9614626990a1644dec63ea71203 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 16 Oct 2025 00:05:50 -0400 Subject: libc: string: Add strtok() function Signed-off-by: Ian Moffett --- src/lib/libc/include/string.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/libc/include') diff --git a/src/lib/libc/include/string.h b/src/lib/libc/include/string.h index 360af12..d9fdfe3 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -50,6 +50,14 @@ size_t strlen(const char *s); */ int strcmp(const char *s1, const char *s2); +/* + * Tokenize a string + * + * @s: Strign to tokenize + * @delim: Delimeter + */ +char *strtok(char *s, const char *delim); + /* * Get the length of a string with a maximum * length -- cgit v1.2.3