Initializacia
This commit is contained in:
parent
3f0bc73577
commit
68b117c304
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user