EC_CONFIG_LIST_ADD(3)
π EC_CONFIG_LIST_ADD(3) π
okay bestie, welcome to the libecoli programmer's manual, and today's main character is ec_config_list_add(3) β yes that's the manual name, yes she's iconic, and yes we're gonna stan her for the next like, five minutes π«Ά
β¨ NAME β¨
ec_config_list_add β add a config object into a list. that's it, that's the whole job, and she does it flawlessly π
π SYNOPSIS π
#include <ecoli/config.h>
int ec_config_list_add(
/*
* The list configuration in which the value will be added.
*/
struct ec_config *list,
/*
* The value configuration to add in the list. The value object will be
* freed when freeing the list object. On error, the value object is also freed.
*/
struct ec_config *value
);
so you're passing list β the list configuration where the value is gonna get added πͺ β and value, the value configuration you're dropping into the list. and listen, this part is IMPORTANT bestie: that value object gets freed when you free the list object, so don't go double-freeing it yourself, okay?? and if something goes wrong, the value object is also freed on error π like she takes care of it either way, she's so responsible.
πΈ STRUCTURES πΈ
structure storing the configuration data. nothing wild, just vibes:
struct ec_config {
union ec_config::@165033305204240054252215261010262276266146032272 @204272232073016241350260013126061051223010235320;
};
yeah that union field name is literally just a big number situation, we don't question it, we respect it, we move on π§
β RETURN VALUE β
0β slay, success β¨-1β not slay, anderrnois set so you can go find out why π
π¦ SEE ALSO π¦
she does not work alone, bestie, this whole ec_config friend group is here:
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_node_config_node_list_from_vargs(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.
no cap, that's the whole page. go forth and add your config objects to your lists, bestie π
and that's a wrap on the libecoli programmer's manual, dated 2026-06-11 β mwah, take care of yourself, hydrate, and free your configs ππ
π¦ 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