mtree_parent - return node number of parent node
Contents
Description
The mtree_nnode function returns the node number of the parent of node.
This calculation is independent of the tree, and is implemented as a macro.
Nodes are numbered from 0 = root.
Errors
None.
Library
Librecast library (liblibrecast, -llibrecast)
Name
mtree_parent - return node number of parent node
Return Value
mtree_parent() returns the number of the parent node.
See Also
mtree_init(3), mtree_free(3), mtree_build(3), mtree_child(3) LIBRECAST 2023-07-23 MTREE_PARENT(3)
Synopsis
#include<librecast/mtree.h>size_tmtree_parent(size_tnode);
Compile and link with -llibrecast.
