Initializacia
This commit is contained in:
parent
5f49f0f967
commit
ed485b28e3
@ -56,7 +56,7 @@ void destroy_tree(struct tree* tree){
|
||||
|
||||
void count_items(struct tree* tree, int* count){
|
||||
if(tree->left == NULL && tree->right == NULL){
|
||||
(*count)++
|
||||
(*count)++;
|
||||
}else{
|
||||
count_items(tree->left, count);
|
||||
count_items(tree->right, count);
|
||||
|
Loading…
Reference in New Issue
Block a user