EC_NODE_MANY(3)
β¨ EC_NODE_MANY(3) β¨
okay so bestie, welcome to EC_NODE_MANY(3) from the Libecoli Programmer's Manual π this is the one where we make a node that just... does the same thing over and over again. iconic behaviour honestly π
πΈ NAME πΈ
ec_node_many β bestie, this builds a many node, and a many node is literally a node that matches its child multiple times. that's the whole vibe. no cap. π
π¦ SYNOPSIS π¦
#include <ecoli/node_many.h>
struct ec_node * ec_node_many(
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 *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
);
π DESCRIPTION π
so here's the tea on the args, one by one, because we do not skip details in this house π«Ά
idβ the node identifier. that's it, that's the whole job πchildβ the child node. important bestie, listen up: it is consumed β meaning it gets freed when the parent is freed, or immediately on error. so do not go freeing it yourself afterwards, that's giving double-free energy πminβ minimum number of repetitions. use0for no minimum β¨maxβ maximum number of repetitions. use0for no maximum β¨
π RETURN VALUE π
you get the node back π ... or NULL on error, in which case errno is set. check it, bestie, don't just rawdog the return value π
π SEE ALSO π
ec_node_many_set_params(3)β go read it, iykyk π
π§ COPYRIGHT π§
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the page!! π¦ this was libecoli, dated 2026-06-11, and you absolutely ate it bestie π periodt β¨
π¦ 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