1 extern int inside_main;
5 my_strstr (const char *s1, const char *s2)
7 __SIZE_TYPE__ len = strlen (s2);
10 /* If optimizing, we should be called only in the strstr (foo + 2, p)
11 case. All other cases should be optimized. */
13 if (s2 != p || strcmp (s1, "hello world" + 2) != 0)
18 for (s1 = strchr (s1, *s2); s1; s1 = strchr (s1 + 1, *s2))
19 if (strncmp (s1, s2, len) == 0)
25 strstr (const char *s1, const char *s2)
30 return my_strstr (s1, s2);