EC_DICT_HAS_KEY(3)
π EC_DICT_HAS_KEY π
okay bestie, so this is a page from the Libecoli Programmer's Manual β it's EC_DICT_HAS_KEY(3) and it's genuinely so simple it's giving "one job and she does it" energy. β¨
β¨ NAME β¨
ec_dict_has_key β check if the hash table contains this key. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
#include <ecoli/dict.h>
bool ec_dict_has_key(
const struct ec_dict *dict, /* The hash table. */
const char *key /* The key string. Must not be NULL. */
);
so you're passing in a dict β that's your hash table, she's the main character here π β and a key, which is the key string, and heads up bestie, it must not be NULL. like, at all. π«Ά
π¦ RETURN VALUE π¦
- Returns
trueif it contains the key π - Returns
falseotherwise - If
keyisNULL,falseis returned anderrnois set toEINVALβ so if you handed her aNULLkey, she's not throwing hands, she's just politely saying "no" and filing a lil note inerrnoabout it π
π SEE ALSO π
the whole squad, fr fr β go read these too:
ec_dict_iter(3)ec_dict_free(3)ec_dict_iter_get_val(3)ec_dict_len(3)ec_dict_dup(3)ec_dict_del(3)ec_dict(3)ec_dict_set(3)ec_dict_get(3)ec_dict_dump(3)ec_dict_iter_next(3)ec_dict_iter_get_key(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
lowkey iconic of them to keep this maintained since 2010 ngl π§
and that's the vibe check, bestie β this came out of libecoli and the date on it is 2026-06-11. slay, go check your keys. ππ β
π¦ 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