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");
8
Gamma> strstr("Acme widgets","wide");
-1
Gamma>
See the Common: The Text Message Display section of the Controller Functions chapter in the Cogent Tools Demo and Tutorials book for an example of this function used in context.