EC_DICT(3)
β¨ EC_DICT(3) β¨
okay bestie, welcome to the Libecoli Programmer's Manual π this one's short and sweet, like a little snack, but it's lowkey the blueprint for literally every other ec_dict page you're about to read. iykyk.
πΈ NAME πΈ
ec_dict β Create a hash table.
yes that's it. that's the whole job. it makes a hash table. iconic behavior fr fr.
π SYNOPSIS π
#include <ecoli/dict.h>
struct ec_dict * ec_dict(
void
);
so you pull in the header, and then you just... call it. no arguments, no config, no drama. it takes void, meaning it wants absolutely nothing from you, and it returns a pointer to a struct ec_dict. she's independent, she's low-maintenance, she's giving main character energy π
π RETURN VALUE π
- the hash table π«Ά β a shiny new
struct ec_dict *, ready to be filled with all your little keys and values NULLon error π β and ngl, when that happens,errnois set, so you can go check what went wrong. no cap, always check forNULLbefore you go dereferencing her. she will not warn you twice.
not me being dramatic but like... fr, check the return value. NULL is a whole vibe and it's not a fun one π
π¦ SEE ALSO π¦
the whole girl squad, assembled:
ec_dict_iter(3)ec_dict_has_key(3)ec_dict_free(3)ec_dict_iter_get_val(3)ec_dict_len(3)ec_dict_dup(3)ec_dict_del(3)ec_dict_set(3)ec_dict_get(3)ec_dict_dump(3)ec_dict_iter_next(3)ec_dict_iter_get_key(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
give them their flowers, they earned them πΈ
and that's the whole page bestie!! this is EC_DICT(3), part of libecoli, dated 2026-06-11 β go forth and build hash tables, you absolute legend πβ¨π
π¦ 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