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

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


SEE ALSO

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


PTC MKS Toolkit 10.4 Documentation Build 39.