Function (Path Standard C Header / string.h)
strcspn
size_t strcspn(char *s, char *charset);
Retrieve several consecutive characters at the beginning of the string s that do not contain the characters in the string charset
Parameters
char *s
String s
char *charset
Char set string