EC_NODE_OPTION(3)
π EC_NODE_OPTION(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β this is the page for ec_node_option(3) and it's literally about making things optional. main character energy fr fr β¨
πΈ NAME πΈ
ec_node_option β makes a node that treats its child like it's optional π like yes queen, you can show up, but also? no pressure π«Ά
β¨ SYNOPSIS β¨
#include <ecoli/node_option.h>
struct ec_node * ec_node_option(
const char *id, /* The node identifier. */
/*
* The child node. It is consumed and will be freed when the parent is
* freed, or immediately on error.
*/
struct ec_node *node
);
so we got two args, no cap:
idβ this is The node identifier. that's her name tag, her little ID, we love that for her πnodeβ The child node. and listen, she gets consumed. like, fully. she will befreedwhen the parent isfreed, OR immediately on error π the way that she does not survive on her own. she's attached to the parent's whole vibe, iykyk.
π¦ RETURN VALUE π¦
you get the node back, or NULL on error β and if it errors, errno is set. so check that errno, bestie, don't just ignore her π
π SEE ALSO π
ec_node_option_set_child(3)β the sibling lore, go read it π§
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, no crumbs left π this was libecoli from 2026-06-11, page EC_NODE_OPTION(3), signing off β slay, stay optional, and don't forget to free your nodes πβ¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms