From 582ca7db6e9beb8010d80dc9bbd6a50e6c16aeaa Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Sun, 9 Nov 2025 17:04:53 +0100 Subject: [PATCH] Fixed yet another check --- du6/program.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/du6/program.c b/du6/program.c index ef83fbf..998a4fb 100644 --- a/du6/program.c +++ b/du6/program.c @@ -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;