VMS Help
CRTL, strspn
*Conan The Librarian
|
Returns the length of the prefix of a string that consists
entirely of characters from a set of characters.
Format
#include <string.h>
size_t strspn (const char *str, const char *charset);
str
A pointer to a character string. If this string is a null string,
0 is returned.
charset
A pointer to a character string containing the characters for
which the function will search.
The strspn function scans the characters in the string, stops
when it encounters a character not found in charset, and returns
the length of the string's initial segment formed by characters
found in charset.
x The length of the segment.