MTREE_CHILD(3)
π MTREE_CHILD(3) π
okay so bestie, welcome to the Librecast Programmer's Manual β this is the page for mtree_child, and it's genuinely such a cute little function. no cap. π
πΈ NAME πΈ
mtree_child β return node number of first child node
π LIBRARY π
Librecast library (liblibrecast, -llibrecast)
like, that's the lib you're linking against, periodt. π«Ά
β¨ SYNOPSIS β¨
#include <librecast/mtree.h>
size_t mtree_child(mtree_t *tree, size_t node);
Compile and link with -llibrecast.
not me reminding you about the -llibrecast flag again... but fr fr, if you forget it nothing links and you'll be sad. π
π¦ DESCRIPTION π¦
The mtree_nnode function returns the node number of the first child of node in tree.
Nodes are numbered from 0 = root.
so basically: hand it a tree and a node, and it hands you back the number of that node's very first child. main character energy, minimal drama, we love to see it. π
π RETURN VALUE π
mtree_child() returns the number of the first child node, or 0 if none.
lowkey important: 0 here means "no child", and it's also the root's number, iykyk. π
π ERRORS π
None.
literally none. no errors, no drama, she just vibes. π
π SEE ALSO π
LIBRECAST β the Librecast crew, version stamped 2023-07-23. that's the whole page, bestie, you ate it up. go forth and traverse your trees π β¨πΈ
π¦ 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