EC_NODE_OPTION(3)

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

πŸ’– 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 be freed when the parent is freed, 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 πŸŽ€


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