strspn

Syntax

int strspn(const char* s, const char* accept)

Arguments

s
The string to scan.
accept
A string containing the characters to scan for.

Return

The length of the initial matching segment.

Description

Returns the length from the start of string s which consists only of characters specified in string accept.

See Also

strcspn, strpbrk, strstr