EC_NODE_SUBSET_SET_MIN(3)

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

✨ EC_NODE_SUBSET_SET_MIN(3) ✨

okay bestie, so this is from the Libecoli Programmer's Manual and it's literally the glow-up button for your subset node πŸŽ€


πŸ’– NAME πŸ’–

ec_node_subset_set_min β€” sets the minimum number of children that have to match. that's it, that's the whole job πŸ’…


🌸 SYNOPSIS 🌸

#include <ecoli/node_subset.h>

int ec_node_subset_set_min(
    struct ec_node   *node,  /* The subset node. */
    unsigned int      min    /* The minimum number of children that must match. */
);

πŸ¦‹ DESCRIPTION πŸ¦‹

so by default, a subset node is lowkey chill and accepts zero matching children. like, zero is fine, no big deal, it's giving "whatever works" energy.

you use this function when you wanna raise the bar 🫢 β€” require a minimum number of children to match before the parse can succeed. no minimum met? no parse. periodt. πŸ‘‘


⭐ RETURN VALUE ⭐

  • 0 β€” success, we ate, the min is set πŸ’–
  • -1 β€” error, and errno is set 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go read the whole fam, iykyk 🧚


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


that's the page bestie, slay πŸ’… libecoli, dated 2026-06-11, and yes it's literally EC_NODE_SUBSET_SET_MIN(3) β€” go set your minimums, main character πŸŽ€βœ¨

πŸ“¦ where this page comes from