/////////////////////////////////////////////////////////////////////////////// // Finds first occurence of str2 in str1. Returns the position of str2 if // found in str1, otherwise returns 0. /////////////////////////////////////////////////////////////////////////////// strstr(str1[], str2[]) { new i = 0; new j = 0; new len1; new len2; len1 = strlen(str1); // Length of source string len2 = strlen(str2); // Length of string we're searching for // Step through str1 for (j=0; j