EC_HTABLE_DEL(3)
β¨ EC_HTABLE_DEL(3) β Libecoli Programmer's Manual β¨
okay bestie, listen up π this is ec_htable_del from the Libecoli Programmer's Manual, and it does exactly one iconic thing: it deletes an object from the hash table. no cap. it's giving "breakup era" but for your data structures π
πΈ NAME πΈ
ec_htable_del β Delete an object from the hash table. ποΈβ¨
literally that's it. that's the whole job. she's a specialist. π
π¦ SYNOPSIS π¦
#include <ecoli/htable.h>
int ec_htable_del(
struct ec_htable *htable, /* The hash table. */
const void *key, /* The key. */
size_t key_len /* The key length. */
);
so you're passing in htable (the hash table itself, your main character π), key (the key, obviously), and key_len (how long that key is, because C does not read minds and honestly? valid). π«Ά
π RETURN VALUE π
0β success, slay, the object is gone, we ate π₯-1β error bestie π anderrnogets set so you can find out what went wrong. always checkerrno, iykyk.
fr fr,-1is not a vibe. check yourerrno, don't just walk away from the crime scene. π΅οΈββοΈ
π SEE ALSO π
the whole friend group, they all link together like a group chat π§:
ec_htable_iter_get_key(3)ec_htable_iter_get_val(3)ec_htable_iter_next(3)ec_htable_has_key(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_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 tea, bestie π β this page is brought to you by libecoli, dated 2026-06-11, and it's EC_HTABLE_DEL(3) forever and always πβ¨ go delete something responsibly π
π¦ 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