MTREE_NNODE(3) Librecast Programmer's Manual MTREE_NNODE(3)

mtree_nnode - return pointer to mtree node

Librecast library (liblibrecast, -llibrecast)

#include <librecast/mtree.h>
uint8_t *mtree_nnode(mtree_t *tree, size_t node);

Compile and link with -llibrecast.

The mtree_nnode function returns a pointer to the hash of node node, where 0 = root.

mtree_nnode() returns a pointer to the hash of the numbered node. On error, NULL is returned, and errno is set to indicate the error.

The node requested is out of range for tree.

mtree_init(3), mtree_free(3), mtree_build(3)

2023-06-20 LIBRECAST