EC_NODE_CONFIG_NODE_LIST_FROM_VARGS(3)

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

πŸ’– NAME πŸ’–

ec_node_config_node_list_from_vargs β€” bestie, this one builds you a whole list of config nodes out of variable arguments. no cap. ✨


🌸 SYNOPSIS 🌸

#include <ecoli/node_helper.h>

struct ec_config * ec_node_config_node_list_from_vargs(
    /*
     * List of pointer to ec_node structures, terminated with EC_VA_END.
     */
    va_list  ap
);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. the va_list argument? it's literally just a list of pointers to ec_node structures, and the whole thing gets terminated with EC_VA_END. that's it, that's the vibe. 🫢

this little helper is the one doing the heavy lifting for nodes that contain a list of nodes β€” you know the girlies, like "seq", "or", ... πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

you get back a pointer to an ec_config structure. and the serve here? the nodes get freed whenever the config structure gets freed β€” automatic cleanup, we love to see it. πŸ’…

but on error? NULL comes back (and errno gets set, as it should), and the nodes are freed. no leaks, no mess. ✨


πŸ‘‘ SEE ALSO πŸ‘‘


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


and that's the whole page, bestie 🧚 β€” this was Libecoli Programmer's Manual, page EC_NODE_C...FROM_VARGS(3), dated 2026-06-11, brought to you by the fine folks behind libecoli. go forth and slay your node lists πŸ’–βœ¨

πŸ“¦ where this page comes from