Finds the first character in a string that does not belong to a set of characters in a substring.
#include <string.h> size_t strspn (const char *string1, const char *string2);
size_t wcsspn(const wchar_t *string1, const wchar_t *string2);
string1 
string2 
The null character terminating string2 is not considered in the matching process.
string1 consisting entirely of characters in string2. 
string1 begins with a character not in string2. 
tchar.h routine | 
_UNICODE not defined | 
_UNICODE defined | 
|---|---|---|
| _tcsspn | strspn | wcsspn | 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 INtime 6.0 (for wide-character and geneic text  | 
intime/rt/include/string.h intime/rt/include/wchar.h intime/rt/include/tchar.h  | 
string.h wchar.h tchar.h  | 
clib.lib |