Function ostree_select

Function Documentation

struct ostree_node *ostree_select(const struct bstree *tree, struct ostree_node *node_in, int i)

Select the ith smallest element in the ostree.

Parameters:
  • tree – The ostree handle.

  • node_in – The node to start searching at (should probably be the root).

  • i – The element rank to select.

Returns:

The ith smallest element, or NULL if no such element or an error occurred.