EC_CONFIG_DUP(3)
π EC_CONFIG_DUP(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this one's short and sweet, so buckle up π
πΈ NAME πΈ
ec_config_dup β Duplicate a configuration. that's it, that's the whole job π
β¨ SYNOPSIS β¨
#include <ecoli/config.h>
struct ec_config * ec_config_dup(
const struct ec_config *config /* The configuration to duplicate. */
);
so you pull in <ecoli/config.h> and then you call ec_config_dup with one thing: config, which is a const struct ec_config * and it's literally just the configuration you wanna duplicate π«Ά no cap.
π¦ STRUCTURES π¦
here's the little guy holding all the configuration data π
struct ec_config {
union ec_config::@165033305204240054252215261010262276266146032272 @204272232073016241350260013126061051223010235320;
};
okay so like, yes, that union member name is genuinely that unhinged. don't touch it, don't "fix" it, don't look at it too long π it's a structure storing the configuration data, periodt.
π RETURN VALUE π
you get back the duplicated configuration π and if things go sideways you get NULL on error β and btw errno is set, so go check it, bestie π
π₯ SEE ALSO π₯
the whole friend group, fr fr:
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_list_add(3)ec_config_schema_validate(3)ec_config_schema_lookup(3)ec_config_validate(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 vibe check, bestie β this page came from libecoli, dated 2026-06-11, and honestly? iconic. go duplicate some 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