From 6a4eb86c64fa42abcf9199cd968be089ee04c3bc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 22 Aug 2022 13:43:02 +0200 Subject: user/libc: strspn, strtok --- src/user/lib/include/string.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/user/lib/include') diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h index eda4e48..5cddb61 100644 --- a/src/user/lib/include/string.h +++ b/src/user/lib/include/string.h @@ -3,3 +3,9 @@ long strtol(const char *restrict s, char **restrict end, int base); char *strchr(const char *s, int c); + +size_t strspn(const char *s, const char *accept); +size_t strcspn(const char *s, const char *reject); + +char *strtok(char *restrict s, const char *restrict sep); +char *strtok_r(char *restrict s, const char *restrict sep, char **restrict state); -- cgit v1.2.3