Name

strcspn —

Synopsis

int strcspn(str1, str2);
string str1;
string str2;

Description

Computes the length of the maximum initial segment of string str1 that consists entirely of characters that are not from string str2

Parameters

str1

The first string

str2

The second string

Returns

The length of the segment

See Also

method.ansi.strspn