logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mtree_parent - return node number of parent node

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.

See Also