From 3f0bc73577be262bb65297141b152420bda0c819 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 12 Nov 2024 19:22:34 +0000 Subject: [PATCH] Initializacia --- cv7/program.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index 7d216e0..44d7cff 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -96,14 +96,6 @@ int main() { printf("Expert z bufetu to vie.\n"); - // Check if the input is empty after loading the tree - char buffer[SIZE]; - if (fgets(buffer, SIZE, stdin) == NULL || buffer[0] == '\n') { - printf("Chybna databaza\n"); - destroy_tree(root); - return 0; - } - int count = 0; count_items(root, &count); printf("Pozna %d druhov ovocia a zeleniny.\n", count);