strspn function — Counts characters in a span set
size_t strspn(const char* str, const char* spanset)
The strspn function returns the number of characters at the start of str that are in the string spanset.
strspn
str
spanset
strchr function, strcspn function, strpbrk function, wcsspn in <cwchar>
wcsspn
<cwchar>