Function bstree_delete

Function Documentation

status_t bstree_delete(struct bstree *tree, struct bstree_node *victim, void *elt)

Delete a node from the tree.

The algorithm from this function is from Introduction_To_Algorithms

Parameters:
  • tree – The BST handle

  • victim – The node to delete

  • elt – To be filled with the data of the deleted node if non-NULL

Returns:

status_t