Computes the length of a substring.
#include <string.h> size_t Lstrspn ( const char *str, const char *charset);
(IN) Points to a null-terminated string to scan.
(IN) Points to a null-terminated set of characters to locate.
Returns the length of the initial segment.
The Lstrspn function is a double-byte character interface. It computes the length of the maximum initial segment of the string pointed to by str, which consists entirely of characters from the string pointed to by charset. The terminating NULL character is not considered to be part of charset.