EC_NODE_MANY_SET_PARAMS(3)

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

✨ NAME ✨

ec_node_many_set_params β€” okay bestie, this one sets the parameters of a many node. That's the whole assignment. πŸ’… It lives in the Libecoli Programmer's Manual, so you know it's legit.

🌸 SYNOPSIS 🌸

#include <ecoli/node_many.h>

int ec_node_many_set_params(
    struct ec_node   *gen_node,  /* The many node. */
    /*
     * The child node. It is consumed and will be freed when the parent is
     * freed, or immediately on error.
     */
    struct ec_node   *child,
    /*
     * Minimum number of repetitions. Use 0 for no minimum.
     */
    unsigned int      min,
    /*
     * Maximum number of repetitions. Use 0 for no maximum.
     */
    unsigned int      max
);

Let's do a little vibe check on those args, shall we? 🫢

  • gen_node β€” the many node. Main character energy, no notes. πŸ‘‘
  • child β€” the child node. Heads up though: it is consumed and will be freed when the parent is freed, or immediately on error. So don't go poking it after, bestie. πŸ’€
  • min β€” minimum number of repetitions. Use 0 for no minimum. Zero means "no min", periodt.
  • max β€” maximum number of repetitions. Use 0 for no maximum. Zero means "no max", iconic.

πŸ’– RETURN VALUE πŸ’–

0 on success, -1 on error (errno is set). That's the tea. Slay. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

ec_node_many(3),

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


And that's a wrap, gorgeous! This page came from libecoli and it's dated 2026-06-11 β€” the footer even says EC_NODE_M...SET_PARAMS(3). Now go forth and configure those repetition counts. Ate. πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from