ec_node_subset_set_min - Man Page

Set the minimum number of children that must match.

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

By default, a subset node accepts zero matching children. Use this function to require a minimum number of children to match for the parse to succeed.

Return Value

0 on success, -1 on error (errno is set).

See Also

ec_node_subset(3), ec_node_subset_min(3), ec_node_subset_get_min(3), ec_node_subset_add(3)

Referenced By

ec_node_subset(3), ec_node_subset_add(3), ec_node_subset_get_min(3), ec_node_subset_min(3).

2026-06-11 Libecoli Programmer's Manual