strcspn()

get length of complementary substring 

Function


SYNOPSIS


DESCRIPTION

The strcspn() function computes the length of the maximum initial segment of the string pointed to by s1 that consists entirely of characters that are not in the string pointed to by s2.


PARAMETERS

s1 

Is the null-terminated string to be searched.

s2 

Is the null-terminated string of the set of complementary characters: characters that do not occur in the initial segment of s1.


RETURN VALUES

The strcspn() function returns the length of the initial segment.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
strchr(), strspn(), strstr()


MKS Toolkit 9.3 Documentation Build 6.