Character string search (maximum length not including specified character)
size_t strcspn(const char *s1, const char *s2);
Returns the length of the portion that has been found.
This function obtains the length of the maximum and first portion consisting of characters missing from the character string indicated by s2 (except the null character (\0) at the end) in the character string indicated by s1.