diff options
author | dzwdz | 2022-08-22 13:43:02 +0200 |
---|---|---|
committer | dzwdz | 2022-08-22 13:43:02 +0200 |
commit | 6a4eb86c64fa42abcf9199cd968be089ee04c3bc (patch) | |
tree | 9fc38291dc469bef2bf7a10cca70459d68068990 /src/user/lib/include | |
parent | e35d6a4fde9a0671bc7d2527ff6b55b0ce1b4b1e (diff) |
user/libc: strspn, strtok
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/string.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |