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