Thursday, 2 August 2012

C function to delete a tree

deleteTree(struct node* pNode)
{
if (pNode != NULL)
{
clear(pNode->left);
clear(pNode->right);
free(pNode);
}
}

No comments:

Post a Comment