Initializacia

This commit is contained in:
Kozar 2024-11-12 19:24:07 +00:00
parent 3f0bc73577
commit 68b117c304

View File

@ -89,12 +89,13 @@ void count_items(struct tree* tree, int* count) {
int main() { int main() {
struct tree* root = load_tree(); struct tree* root = load_tree();
printf("Expert z bufetu to vie.\n");
if (!root) { if (!root) {
printf("Chybna databaza\n"); printf("Chybna databaza\n");
return 0; return 0;
} }
printf("Expert z bufetu to vie.\n");
int count = 0; int count = 0;
count_items(root, &count); count_items(root, &count);