EC_CONFIG_STRING(3)
β¨ EC_CONFIG_STRING β bestie, let's make a string π
okay so you're in the Libecoli Programmer's Manual (yes the whole manual, hi, welcome, come sit with me π«Ά) and you wanna build a config value that's literally just a string. that's it. that's the function. it's giving "small but mighty" β¨
πΈ NAME πΈ
ec_config_string β create a string configuration value π
like. it makes a string. a config one. no cap.
π SYNOPSIS π
#include <ecoli/config.h>
struct ec_config * ec_config_string(
/*
* The string value to be set. The string is copied into the configuration
* object.
*/
const char *string
);
ok so real talk about that string argument, because this part is important: it's the string value you wanna set, and the string gets copied into the configuration object π«Ά. so you're not handing over your pointer for safekeeping, you're handing over a copy of what it points at. the config object does its own thing with it. periodt.
π RETURN VALUE π
you get the configuration object back. iconic. π
but if things go sideways you get NULL on error β and bestie, errno is set, so go check it, don't just sit there staring at your NULL like π
π¦ 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_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_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 π from libecoli, dated 2026-06-11, filed under EC_CONFIG_STRING(3) β go forth and string, you absolute main character ππ¦
π¦ 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