void treeFree(struct tnode *p) { if (p != NULL) { treeprint(p->left); treeprint(p->right); } else { free(p); } }