EC_DICT_DEL(3)

πŸ’– EC_DICT_DEL β€” bestie, it's giving "delete from hash table" πŸ’–

okay so this is the ec_dict_del(3) page from the Libecoli Programmer's Manual, and honestly? she's short, she's sweet, she's a whole mood. no cap. πŸŽ€


🌸 NAME 🌸

ec_dict_del β€” delete an object from the hash table. that's it. that's the job. bye bestie πŸ‘‹βœ¨


✨ SYNOPSIS ✨

the way you gotta pull in the header first, always:

#include <ecoli/dict.h>

and then, the moment we've all been waiting for:

int ec_dict_del(
    struct ec_dict   *dict,  /* The hash table. */
    const char       *key    /* The key string. Must not be NULL. */
);

okay so real talk about the two things you're handing over:

  • dict β€” this is your hash table. the main character. the whole vibe. 🫢
  • key β€” the key string. and bestie, listen, it must not be NULL. i'm not playing, the manpage says it, so we say it. 🚨

πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 β€” success!! you ate, no crumbs, periodt πŸ’…
  • -1 β€” error πŸ™ˆ and lowkey, errno gets set. so check your errno, bestie, she's talking to you.

πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, they're iconic in their own right, fr fr:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


not me getting emotional over a delete function 😭 anyway if you pass a NULL key that's on you, i warned you, that's undefined-adjacent chaos energy and we don't do that here πŸ’€

and that's the page, bestie!! this lil drop is from the Libecoli Programmer's Manual, dated 2026-06-11 β€” write it down, cite it in your commit message, be that girl πŸŒˆβ­πŸ§šπŸ“πŸ’œ

πŸ“¦ where this page comes from