INtime SDK Help
strspn, wcsspn

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);

Parameters

string1
String to search.
string2
Character set.

Remarks

The null character terminating string2 is not considered in the matching process.

Return Values

An integer value specifying the length of the substring in string1 consisting entirely of characters in string2.
Success.
0 (zero) if string1 begins with a character not in string2.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_tcsspn strspn wcsspn

Requirements

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
See Also