Proper returns

This commit is contained in:
Imbus 2024-03-27 07:52:28 +01:00
parent 457cd2965e
commit 26bba55a3c

View file

@ -43,6 +43,8 @@ int tree_insert(Tree *tree, int data) {
} }
} }
} }
return 0;
} }
bool tree_contains(Node *node, int data) { bool tree_contains(Node *node, int data) {
@ -59,6 +61,8 @@ int tree_remove(Node **node, int data) {
if (node == NULL) if (node == NULL)
return false; return false;
// TODO // TODO
return 0;
} }
int tree_clear(Node *node) { int tree_clear(Node *node) {