MTREE_NNODE(3)
MTREE_NNODE(3) π
okay bestie, welcome to the Librecast Programmer's Manual β this one lives in section 3 and it's lowkey the chillest lil function in the whole tree π³β¨
NAME π
mtree_nnode β gimme a pointer to an mtree node, bestie
LIBRARY π
Librecast library (liblibrecast, -llibrecast) π¦
SYNOPSIS β¨
#include <librecast/mtree.h>
uint8_t *mtree_nnode(mtree_t *tree, size_t node);
Compile and link with -llibrecast. π
DESCRIPTION πΈ
so the way that mtree_nnode works is it hands you back a pointer to the hash of node node, where 0 = root. that's it. that's the whole vibe. number zero is the root, no cap. π
RETURN VALUE π
mtree_nnode() returns a pointer to the hash of the numbered node. π«Ά
but if something goes wrong, it returns NULL, and errno gets set to tell you what went wrong. so check that pointer, bestie, fr fr. π
ERRORS π
ERANGEβ the node you asked for is out of range for tree. it's giving "bestie that node does not exist". π«
SEE ALSO π₯
mtree_init(3), mtree_free(3), mtree_build(3)
and that's the whole page, periodt π
LIBRECAST put this one out on 2023-06-20, and it's filed under MTREE_NNODE(3) β go build something iconic with it, mwah πβ¨π¦
π¦ where this page comes from
- debian trixie: liblibrecast-dev 0.9.1-1 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu noble: liblibrecast-dev 0.8.0-1.1build1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: liblibrecast-dev 0.9.1-1
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms