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 😭 and errno gets set so you can find out what went wrong. always check errno, iykyk.
fr fr, -1 is not a vibe. check your errno, don't just walk away from the crime scene. πŸ•΅οΈβ€β™€οΈ

🌈 SEE ALSO 🌈

the whole friend group, they all link together like a group chat 🧚:


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