rbtree.c: rbtree_walk: pass rbnode->key instead of rbnode to callback function
This commit is contained in:
parent
2c54173a52
commit
0fba36440c
4 changed files with 8 additions and 7 deletions
|
|
@ -83,7 +83,8 @@ NOTE: The memory pointed to by the 'key' pointer is *not* copied so you must ens
|
|||
|
||||
`rbtree_walk()`::
|
||||
|
||||
Walks the tree in in-order and calls the 'action' callback function for every node.
|
||||
Walks the tree in-order and passes a pointer to `rbnode->key`
|
||||
for the given node to the 'action' callback function.
|
||||
|
||||
`rbtree_search()`::
|
||||
|
||||
|
|
|
|||
Reference in a new issue