EC_HTABLE_HAS_KEY(3)
β¨ EC_HTABLE_HAS_KEY β¨
okay bestie, welcome to the ec_htable_has_key page from the Libecoli Programmer's Manual π this one is short and sweet and honestly? iconic. it does exactly one (1) thing and it does it flawlessly.
πΈ NAME πΈ
ec_htable_has_key β bestie, this is the lil check that asks: does this hash table contain this key or not?? π
π SYNOPSIS π
#include <ecoli/htable.h>
bool ec_htable_has_key(
const struct ec_htable *htable, /* The hash table. */
const void *key, /* The key. */
size_t key_len /* The key length. */
);
so the way this works is you hand it three things and it just tells you yes or no. no drama, no side quests, no notes. π¦
- the
htableβ that's your hash table, the main character. you pass it asconst struct ec_htable *. - the
keyβ that's the key you're looking for, aconst void *, so it can literally be anything, we don't judge π - the
key_lenβ the length of that key, as asize_t, because the table can't read your mind and it needs to know how many bytes we're talking about fr fr
π RETURN VALUE π
it returns true if it contains the key, else false. that's it. that's the whole vibe check. πβ¨
not me checking a key and getting a plain old bool back β no error codes, no surprises, just truth. we love a low-stakes icon.
π SEE ALSO π
squad goals, here's the whole friend group:
ec_htable_iter_get_key(3)ec_htable_iter_get_val(3)ec_htable_iter_next(3)ec_htable_len(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.
and that's the whole page, bestie π«Ά this one came straight out of the libecoli manual, dated 2026-06-11, and it's giving β¨ short β¨ simple β¨ slay β¨. go check your keys, queen πππ¦
π¦ 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