Find a substring in a string.
size_t strcspn( LPCSTR lpcszString, LPCSTR lpcszCharSet )
Returns the index of the first occurrence of a character in string that is in strCharSet. All characters before returned index are not in character set.
EX1
void strcspn_ex1() { char str[] = "xyzababc"; int pos; pos = strcspn( str, "abc" ); printf( "First a, b or c in %s is at character %d\n", str, pos ); }
origin.h