INtime SDK Help
strchr, wcschr

Searches for a character in a null-terminated string.

#include <string.h>

char *strchr(const char *string, int c);

#include <wchar.h>

wchar_t *wcschr(const wchar_t *string, wchar_t c);

Parameters

string
String to search; must contain a null character marking the end of the string; the terminating null character is included in the search.
c
Character to be located.

Return Values

A pointer to the first occurrence of c in the string. The character may be the null character \0.
Success.
A null pointer if the character is not found.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_tcschr strchr wcschr

Requirements

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