LOWDOWN_NODE_FREE(3)

πŸ“¦
version 3.2.1 Β· 2 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– LOWDOWN_NODE_FREE(3) πŸ’–

okay bestie, welcome to LOWDOWN_NODE_FREE(3), straight out of the Library Functions Manual πŸŽ€ and yeah the manual name is right there in the title, we love a self-explanatory era ✨


🌸 NAME 🌸

lowdown_node_free β€” free a parsed Markdown tree 🧚


πŸ“š LIBRARY πŸ“š

library β€œliblowdown” πŸ’…


✨ SYNOPSIS ✨

#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>

void
lowdown_node_free(struct lowdown_node *n);

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this one frees a parsed tree n β€” like, the whole thing, all of it, the entire family tree 🌳 β€” as created with lowdown_doc_parse(3) or lowdown_diff(3), and that includes all of its descendents too. Every single child node, no node left behind, periodt πŸ‘‘

And if n is NULL? Not me stressing about that πŸ’€ the function literally does nothing. Zero drama, zero crash, just vibes 🌈

lowkey iconic behaviour ngl 🫢

πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page bestie, no cap πŸ’– this is from the Debian edition, version $Mdocdate$, and the page itself is LOWDOWN_NODE_FREE(3) β€” go free those trees, main character πŸŽ€βœ¨πŸ’