Declaration:
int strcspn(char s1[], char s2[], int s1_index=0, int s2_index=0);
Description
The function searches any character from line s2 to line s1.
Returned value
The strcspn function returns the number of the first character in line s1 equal to any character from line s2. Zero will be returned, if the first character in line s1 is equal to any character from line s2. If there are no such characters there, then the length of line s1 will be returned (the zero character is not taken into account).
|