Function rb_walk

Function Documentation

void rb_walk(rb_node_t *node, void (*pre_func)(rb_node_t*), void (*func)(rb_node_t*, void *payload), void (*post_func)(rb_node_t*), void *payload)

Walk the tree.

Parameters:
  • tree – the node to start from

  • pre_func – Function to call before descending or NULL

  • func – Function before descending to right subtree or NULL

  • post_func – Function to call before descending or NULL

  • payload – Payload to pass to func