INtime SDK Help
strstr, wcsstr

Finds a substring within a string.

#include <string.h>

char *strstr (const char *string1, const char *string2);
wchar_t *wcsstr(const wchar_t *string1, const wchar_t *string2);

Parameters

string1
String to search.
string2
String to search for.

Return Values

A pointer to the first occurrence of string2 in string1.
Success.
A null pointer if the string is not found.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_tcsstr strstr wcsstr

Requirements

Versions Defined in Include Link to
INtime 3.0
INtime 6.0 (for wide-character and generic text version)
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