#include "tree.h" #include <stdlib.h> void node_init(node *n, node *parent) { n->parent = parent; n->left = NULL; n->right = NULL; n->black = 0; }