standard.C.string.strstr

strstr is available since version 1.0.

Prototype:

string strstr(string string, string strSearch);

Parameters

string
Null-terminated string to search
strCharSet
Null-terminated string to search for

Description:

Find a substring. The search does not include terminating null characters.

Return value:

Returns a string starting from the first occurrence of strCharSet in string, or an empty string if strCharSet does not appear in string. If strCharSet points to a string of zero length, the function returns string.