Synopsis
int strspn(str1, ch);
string str1;
char ch;
Description
Computes the length of the maximum initial segment of string str1 that consists entirely of characters from string str2:
Parameters
- str1
The first string
- ch
The second string
Returns
The length of the segment