EC_NODE_CONFIG_NODE_LIST_FROM_VARGS(3)
π 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 π
ec_config_schema_sub(3)ec_config_u64(3)ec_config_list_del(3)ec_config_dict(3)ec_config_count(3)ec_config_schema_dump(3)ec_config_i64(3)ec_config_list_next(3)ec_config_get_type(3)ec_config_dict_set(3)ec_config_list_first(3)ec_config_schema_type(3)ec_config_node(3)ec_config_list(3)ec_config_cmp(3)ec_node_config_node_list_to_table(3)ec_config_key_is_reserved(3)ec_config_string(3)ec_config_dict_get(3)ec_config_free(3)ec_config_list_add(3)ec_config_schema_validate(3)ec_config_schema_lookup(3)ec_config_validate(3)ec_config_dup(3)ec_config_dump(3)ec_config_dict_del(3)ec_config_bool(3)
π COPYRIGHT π
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
- 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