decided not to lie
This commit is contained in:
parent
da036259f2
commit
5c2c504b06
@ -41,7 +41,7 @@ int strchr(char s1[], char sym) {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
while (s1[i] != sym) {
|
while (s1[i] != sym) {
|
||||||
i++;
|
i++;
|
||||||
if (i >= strlen_1st(s1)) { printf("there's is such symbol"); break; }
|
if (i >= strlen_1st(s1)) { printf("there's no such symbol"); break; }
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user