Fixed yet another check
This commit is contained in:
parent
c18ef8e5bb
commit
582ca7db6e
@ -99,6 +99,10 @@ int main(void){
|
||||
printf("\n%s", tree->value);
|
||||
fgets(answer, sizeof(answer), stdin);
|
||||
answer[strcspn(answer, "\n")] = '\0';
|
||||
if(strcmp(answer, "\0") == 0){
|
||||
printf("\nKoniec vstupu\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(strcmp(answer, "n") == 0){
|
||||
tree = tree->right;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user