Function bstree_insert_internal

Function Documentation

status_t bstree_insert_internal(struct bstree *tree, void *key, void *data, size_t node_size)

Insert a new data into a BST.

This should NEVER be called by an application—for internal use only.

Parameters:
  • tree – The BST handle

  • key – The key of the data to insert

  • data – The data to insert

  • node_size – The size of the nodes in the tree, in bytes

Returns:

status_t