cpp/string/byte/strcspn

Returns the length of the maximum initial segment of the byte string pointed to by, that consists of only the characters not found in byte string pointed to by.

The function name stands for "complementary span".

Return value
The length of the maximum initial segment that contains only characters not found in the byte string pointed to by.