ec_node_option - Man Page

Create an option node that makes its child optional.

Synopsis

#include <ecoli/node_option.h>

struct ec_node * ec_node_option(
    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   *node
);

Return Value

The node, or NULL on error (errno is set).

See Also

ec_node_option_set_child(3)

Referenced By

ec_node_option_set_child(3).

2026-06-11 Libecoli Programmer's Manual