strcspn Function (ROM Call 0x275)

string.h

unsigned long strcspn (const char *s1, const char *s2);

Scans a string.

strcspn returns the length of the initial segment of string s1 that consists entirely of characters not from string s2. If string s1 contains no characters from string s2, strcspn returns the length of string s1.