Initializacia

This commit is contained in:
Kozar 2024-11-12 19:22:34 +00:00
parent 192ea219b4
commit 3f0bc73577

View File

@ -96,14 +96,6 @@ int main() {
printf("Expert z bufetu to vie.\n"); 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; int count = 0;
count_items(root, &count); count_items(root, &count);
printf("Pozna %d druhov ovocia a zeleniny.\n", count); printf("Pozna %d druhov ovocia a zeleniny.\n", count);