char *ft_strstr(char *str, char *to_find)
{
int i1 = 0, i2 = 0, r = -1;
bool check = false;
while(str[i1] != '\0') //запускаю на проверку строку
{
for (i2=0; to_find[i2] != '\0'; i2++)
{
if(str[i1+i2] != '\0' && str[i1+i2] == to_find[i2])
check = true;
else
{
check = false;
break;
}
}
if (check)
{
r = i1;
break;
}
i1++;
}
return (&str[r]);
}