EC_CONFIG_BOOL(3)
π EC_CONFIG_BOOL(3) π
okay so bestie, welcome to ec_config_bool from the Libecoli Programmer's Manual β yes it's a manual page, yes it's page 3, yes we're making it cute. sit down, grab a strawberry π, this one's short and sweet and you're gonna slay it.
β¨ NAME β¨
ec_config_bool β create a boolean configuration value. that's it. that's the whole job. a little bool in a trench coat. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <ecoli/config.h>
struct ec_config * ec_config_bool(
bool boolean /* The boolean value to be set. */
);
so you pull in <ecoli/config.h> and then you hand over one single bool β that's the boolean value you want to be set β and boom, you get a config object back. one argument, zero drama, main character energy fr fr β¨
π«Ά RETURN VALUE π«Ά
you get the configuration object back. that's the good ending. π
but also β and this is the part where we keep it real β you can get NULL on error, and in that case errno is set. so if you're getting NULL, bestie, check your errno, don't just stand there staring at it π
no cap: always check for NULL before you go dereferencing. the config object does not owe you anything.
π¦ SEE ALSO π¦
the whole friend group, all of them, in order, no one left out (iykyk):
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_dup(3)ec_config_dump(3)ec_config_dict_del(3)
likeβ¦ that's the entire group chat. go read them too, they're all valid π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the page, bestie π this was libecoli, dated 2026-06-11, and honestly? she ate. go make your boolean. πβ
π¦ 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