strstr

strstr

Defined in header <string.h>
char *strstr( const char* str, const char* substr );

Finds the first occurrence of the null-terminated byte string pointed to by substr in the null-terminated byte string pointed to by str. The terminating null characters are not compared.

The behavior is undefined if either str or substr is not a pointer to a null-terminated byte string.

Parameters

str - pointer to the null-terminated byte string to examine
substr -