EC_NODE_FREE(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸŽ€ EC_NODE_FREE πŸŽ€

okay so hi bestie, welcome to the Libecoli Programmer's Manual πŸ’– this page is about one lil function that does one lil job and honestly? it eats. it's giving "clean up after yourself" energy and we respect it. 🫢


✨ NAME ✨

ec_node_free β€” decrements the node's reference counter, and frees the node if that was the last reference. that's the whole plot. no plot twists. πŸ’…

so like, if other people are still holding a reference to that node, it just quietly drops the count and walks away. but if you were the last one holding it? boom. freed. main character exit. πŸ‘‘


🌈 SYNOPSIS 🌈

#include <ecoli/node.h>

void ec_node_free(
    struct ec_node   *node   /* The grammar node to free. */
);

so yeah, you gotta pull in <ecoli/node.h> first, no cap β€” that's where the whole thing lives. πŸ¦‹

and then you hand it exactly one thing: node, which is the grammar node you want to free. that's your girl. she's a struct ec_node *. send her off. 😭

heads up bestie: the return type is void. it does not hand you back a status, a code, a little note, nothing. it just does the thing. silence. iconic behaviour, honestly. ✨

🌸 SEE ALSO 🌸

like, go read her friends too, they're all part of the same squad πŸ’œ:

iykyk, that's a whole friend group right there 🧚


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the page bestie, we're done here πŸ“ thanks for coming to my ted talk β€” this was libecoli, dated 2026-06-11, and she ate every single time πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from