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