int find_str(char *some, char *for_search){
char *p, *j;
for (int i = 0; some[i]; i++){
p = &some[i];
j = for_search;
while (*p == *j && *p != 0){
j++; p++;
}
if (!*j && (*p == ' ' || !*p)) return i;
else {
p = &some[i];
j = for_search;
}
}
return 0;
}
char * __cdecl strstr (
const char * str1,
const char * str2
)
{
char *cp = (char *) str1;
char *s1, *s2;
if ( !*str2 )
return((char *)str1);
while (*cp)
{
s1 = cp;
s2 = (char *) str2;
while ( *s1 && *s2 && !(*s1-*s2) )
s1++, s2++;
if (!*s2)
return(cp);
cp++;
}
return(NULL);
}
*j++; *p++;
j++; p++;