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

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


PTC MKS Toolkit 10.3 Documentation Build 39.