MTREE_SUBTREE_DATA(3)
π MTREE_SUBTREE_DATA π
okay bestie, welcome to the Librecast programmer's manual, specifically the mtree_subtree_data_min and mtree_subtree_data_max girlies π they live in the liblibrecast library (that's -llibrecast when you're linking, iykyk) and they are here to hand you the minmax data nodes of a subtree. so slay.
β¨ NAME β¨
mtree_subtree_data_min, mtree_subtree_data_max β return minmax data nodes π
πΈ LIBRARY πΈ
Librecast library (liblibrecast, -llibrecast)
π¦ SYNOPSIS π¦
#include <librecast/mtree.h>
size_t mtree_subtree_data_min(size_t base, size_t root);
size_t mtree_subtree_data_max(size_t base, size_t root);
Compile and link with -llibrecast. π«Ά
π DESCRIPTION π
so here's the vibe: mtree_subtree_data_min and mtree_subtree_data_max hand you back the node number of the minimum and maximum data nodes respectively β that's one each, no cap β for the subtree with root node root in a tree that's got base data nodes. β¨
and the numbering? nodes are numbered from 0 = root. the root is the main character, everyone else is just living in its orbit. periodt.
π RETURN VALUE π
these functions return the number of the min or max data node, as appropriate. so like, whichever one you asked for. iconic behaviour honestly. π
π ERRORS π
None. literally none. not a single error to be found, bestie β it's giving flawless. π
π SEE ALSO π
okay that's the whole page, you ate it up fr fr π this was brought to you by LIBRECAST, dated 2023-07-23, and yes the manual section is MTREE_SUBTREE_DATA(3) β go forth and index your trees, 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