ecoli_node_many(3)
π ecoli_node_many(3)
okay so bestie, welcome to Libecoli, and specifically to ecoli_node_many(3) β the manual page for the Many node. yes that's the whole vibe. let's get into it π
β¨ NAME β¨
ecoli_node_many β Many node
- A node that matches its child multiple times. like, the same child, over and over. iconic repetitive queen behavior honestly π₯
πΈ SYNOPSIS πΈ
Functions
struct ec_node * ec_node_many (const char *id, struct ec_node *child,
unsigned int min, unsigned int max)
int ec_node_many_set_params (struct ec_node *gen_node, struct ec_node
*child, unsigned int min, unsigned int max)
π¦ Detailed Description π¦
A node that matches its child multiple times. that's it, that's the whole concept β one child node, matched again and again. lowkey elegant, highkey useful π
π§ Configuration Schema
schema many {
node child {
description "The child node.";
}
uint64 min {
description "The minimum number of matches (default = 0).";
}
uint64 max {
description "The maximum number of matches. If 0, there is no maximum (default = 0).";
}
}
heads up: formax, a value of0means there is no maximum at all β not "zero matches". so like, don't panic when you see it π
π Function Documentation π
β struct ec_node* ec_node_many (const char * id, struct ec_node * child, unsigned int min, unsigned int max)
Create a many node that matches its child multiple times. fresh node, fresh repetitive vibes, main character energy fr fr β¨
Parameters β the way this works:
idβ The node identifier.childβ The child node. It is consumed and will be freed when the parent is freed, or immediately on error. π so like, it's yours now, the parent owns it, don't go freeing it yourself, that's giving double-free disaster πminβ Minimum number of repetitions. Use0for no minimum.maxβ Maximum number of repetitions. Use0for no maximum.
Returns
The node, or NULL on error (errno is set). ngl if you get NULL back, go check errno, she's spilling the tea π«Ά
β int ec_node_many_set_params (struct ec_node * gen_node, struct ec_node * child, unsigned int min, unsigned int max)
Set the parameters of a many node. so if you already made the node and now you're like "wait, new parameters just dropped", this is your girl π
Parameters:
gen_nodeβ The many node.childβ The child node. It is consumed and will be freed when the parent is freed, or immediately on error. same rule as before bestie β consumed on success, and if it errors out, it gets freed right away, so don't touch it after πminβ Minimum number of repetitions. Use0for no minimum.maxβ Maximum number of repetitions. Use0for no maximum.
Returns
0 on success, -1 on error (errno is set). classic. zero is slay, minus one is not slay π
π Author π
Generated automatically by Doxygen for Libecoli from the source code. not me being auto-generated, the robots did my homework ππ«Ά
π and that's the whole page! shoutout to Libecoli version 0.11.3, dated Thu Apr 9 2026 β this manual page ate and left no crumbs. periodt. π β¨π
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms