EC_DICT(3)

✨ EC_DICT(3) ✨

okay bestie, welcome to the Libecoli Programmer's Manual πŸ’– this one's short and sweet, like a little snack, but it's lowkey the blueprint for literally every other ec_dict page you're about to read. iykyk.


🌸 NAME 🌸

ec_dict β€” Create a hash table.

yes that's it. that's the whole job. it makes a hash table. iconic behavior fr fr.


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/dict.h>

struct ec_dict * ec_dict(
    void
);

so you pull in the header, and then you just... call it. no arguments, no config, no drama. it takes void, meaning it wants absolutely nothing from you, and it returns a pointer to a struct ec_dict. she's independent, she's low-maintenance, she's giving main character energy πŸ‘‘


πŸ’… RETURN VALUE πŸ’…

  • the hash table 🫢 β€” a shiny new struct ec_dict *, ready to be filled with all your little keys and values
  • NULL on error 😭 β€” and ngl, when that happens, errno is set, so you can go check what went wrong. no cap, always check for NULL before you go dereferencing her. she will not warn you twice.
not me being dramatic but like... fr, check the return value. NULL is a whole vibe and it's not a fun one πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the whole girl squad, assembled:


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

give them their flowers, they earned them 🌸


and that's the whole page bestie!! this is EC_DICT(3), part of libecoli, dated 2026-06-11 β€” go forth and build hash tables, you absolute legend πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from