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