Everything

strstr


Searches a specified string for the first occurrence of another string specified.

[Format]

#include <string.h>

char *strstr (const char *s1, const char *s2);

[Parameters]

s1 Pointer to the string to be searched

s2 Pointer to the string to search for

[Return values]

If the string is found: Pointer to the found string

If the string is not found: NULL

[Remarks]

The strstr function searches the string specified by s1 looking for the first occurrence of another string specified by s2, and returns the pointer to the first occurrence.