EC_HTABLE_LEN(3)
β¨ EC_HTABLE_LEN(3) β¨
okay so bestie, welcome to the libecoli programmer's manual π this one's from the Libecoli Programmer's Manual, and it's literally the shortest little function ever and honestly? iconic for it. it's called ec_htable_len and yes, we're about to get the length of a hash table. that's it. that's the whole vibe. π
πΈ NAME πΈ
ec_htable_len β get the length of a hash table. that's it bestie, that's the job π
π¦ SYNOPSIS π¦
#include <ecoli/htable.h>
size_t ec_htable_len(
const struct ec_htable *htable /* The hash table. */
);
so you pull in <ecoli/htable.h> and then you hand it a pointer to your hash table β that's the htable argument, and yeah it's const struct ec_htable *, it's just looking, not touching, she's respectful like that π β and she gives you back a size_t. no cap.
π RETURN VALUE π
the length of the hash table. that's the whole return value, that's the whole tea β she tells you how long it is, periodt. π
π₯ SEE ALSO π₯
go off and read these too, they're all besties fr fr:
ec_htable_iter_get_key(3)ec_htable_iter_get_val(3)ec_htable_iter_next(3)ec_htable_has_key(3)ec_htable(3)ec_htable_force_seed(3)ec_htable_dup(3)ec_htable_iter_get_key_len(3)ec_htable_dump(3)ec_htable_del(3)ec_htable_set(3)ec_htable_get(3)ec_htable_free(3)ec_htable_iter(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
okay that's the whole page bestie, no more notes, go call ec_htable_len on something, slay π
β¨
and that's a wrap on the libecoli manual, dated 2026-06-11 β mwah, bye π«ΆπΈπ¦
π¦ 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