Fixed yet another check

This commit is contained in:
Anton Dolozin 2025-11-09 17:04:53 +01:00
parent c18ef8e5bb
commit 582ca7db6e

View File

@ -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;