strstr
strstr — finds the location of a given substring.
strstr (stringA, stringB)
stringAA string.
stringBA string.
The position of stringB within
stringA, or -1 if stringA
does not contain stringB.
This function finds the first complete occurrence of
stringB within stringA and
returns the position of the starting character of the match within
stringA. The first character in
stringA is numbered zero. If no match is found,
-1 is returned.
Gamma>strstr("Acme widgets","get");8Gamma>strstr("Acme widgets","wide");-1Gamma>