strspn()

get length of substring 

Function


SYNOPSIS

#include <string.h>

size_t strspn(const char *s1, const char *s2);


DESCRIPTION

The strspn() function computes the length of the maximum initial segment of the string pointed to by s1 that consists entirely of characters from the string pointed to by s2.


PARAMETERS

s1 

Points to a null-terminated string to be searched.

s2 

Points to a null-terminated character set.


RETURN VALUES

The strspn() 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:
strcspn(), strpbrk(), strstr()


MKS Toolkit 9.5 Documentation Build 3.