Initializacia

This commit is contained in:
Kozar 2024-11-12 12:47:48 +00:00
parent 2da0b7a3e5
commit b701fb7fdc

View File

@ -32,10 +32,16 @@ struct tree* load_tree() {
if (node->value[0] != '*') {
node->left = load_tree();
node->right = load_tree();
if (!node->left || !node->right) {
destroy_tree(node);
return NULL;
}
}
return node;
}
void run_tree(struct tree* tree) {
if (!tree) {
return;