libc: Add strspn, strcspn, and strtok declarations to string.h
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
apio 2023-03-12 10:39:38 +01:00
parent af0cb83a58
commit 12bc59ead5
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -47,6 +47,15 @@ extern "C"
/* Return the human-readable description of an error number. */ /* Return the human-readable description of an error number. */
char* strerror(int errnum); char* strerror(int errnum);
/* Return the length of the initial segment of str which consists only of bytes in accept. */
usize strspn(const char* str, const char* accept);
/* Return the length of the initial segment of str which consists only of bytes not in reject. */
usize strcspn(const char* str, const char* reject);
/* Separate a string into several tokens. */
char* strtok(char* str, const char* delim);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif