strstr()

Syntax
  #include <string.h> 

  
  char *strstr(const char *p, const char *q);

  
Description

strstr() looks for substring q appearing in string p.

Return

A pointer to the beginning of the first occurrence of string q in p, or NULL, if q does not appear in p.

See also

strchr(),

strcspn(),

strpbrk(),

strrchr(), and

strspn()