Auto commit
This commit is contained in:
parent
ad6ebb9fa2
commit
0fca9c9a65
@ -42,8 +42,8 @@ int isSubstring(char *str1, char *str2)
|
|||||||
i++;
|
i++;
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
if(str1[i] == str2[0]){
|
if(j != 0){
|
||||||
i--;
|
i-=j;
|
||||||
}
|
}
|
||||||
if(str2[j] == '\0'){
|
if(str2[j] == '\0'){
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user