EC_CONFIG_COUNT(3)
β¨ EC_CONFIG_COUNT β¨
okay bestie, real talk: this is a page from the Libecoli Programmer's Manual, and it's about one tiny little function that does one tiny little thing. no drama. no chaos. just counting. π
πΈ NAME πΈ
ec_config_count β count the number of elements in a list or a dict. that's it. that's the whole job. she counts. she slays. periodt. π₯
π¦ SYNOPSIS π¦
#include <ecoli/config.h>
ssize_t ec_config_count(
const struct ec_config *config /* The configuration that must be a list or a dict. */
);
so like, you gotta #include <ecoli/config.h> first (mandatory, non-negotiable, we don't skip includes in this house π), and then you hand her a config β which must be a list or a dict, okay?? β and she gives you back a number. that's the vibe check. π
π§ STRUCTURES π§
this is the structure storing the configuration data. look at her. iconic. mysterious. slightly unhinged. π
struct ec_config {
union ec_config::@165033305204240054252215261010262276266146032272 @204272232073016241350260013126061051223010235320;
};
no cap, i'm not gonna explain that union name to you because i literally cannot read it either, but it's in the header and it's staying exactly where it is. copy it character for character if you need to reference it. fr fr. π«Ά
π RETURN VALUE π
- the number of elements β yay!! the good ending β¨
-1on error, anderrnois set β the bad ending π
so like, always check for -1, bestie. she's not gonna text you back with an explanation, she's just gonna set errno and move on. rude but valid. π
π SEE ALSO π
the whole group chat, in order:
ec_config_schema_sub(3)ec_config_u64(3)ec_config_list_del(3)ec_config_dict(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)ec_config_bool(3)
go read them all. or don't. i'm a manual page, not a cop. π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! Libecoli, dated 2026-06-11, filed under EC_CONFIG_COUNT(3). now go count something. i believe in you. πβ¨π¦
π¦ 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