Name

strspn function — Counts characters in a span set

Synopsis

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.