EC_HTABLE_ITER_GET_VAL(3)
π EC_HTABLE_ITER_GET_VAL π
okay bestie so this is a page from the Libecoli Programmer's Manual, and it's about ec_htable_iter_get_val(3) β the little function that hands you the value sitting at wherever your hash table iterator is currently pointing. that's it. that's the whole job. she's simple, she's reliable, she's iconic. π
β¨ NAME β¨
ec_htable_iter_get_val β grab the value of the element you're currently looking at π«Ά
πΈ SYNOPSIS πΈ
#include <ecoli/htable.h>
void * ec_htable_iter_get_val(
const struct ec_htable_elt_ref *iter /* The hash table iterator. */
);
so you pass in iter β that's the hash table iterator, the little pointer that knows where you are in the table β and she gives you back the value. no drama, no side quests. π
π RETURN VALUE π
you get back the current element value, fr fr. but β and this is the part where you gotta pay attention β if the iterator is pointing at an invalid element, you get NULL back instead. so like, vibe check your iterator before you trust what it hands you. π
no cap: NULL here means "this iterator is not on a valid element", not "the value happens to be NULL-ish and everything is fine". read the room bestie.
π¦ SEE ALSO π¦
the whole friend group, in the order the page lists them:
ec_htable_iter_get_key(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_del(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 whole page, bestie π this one's from libecoli, dated 2026-06-11, and it's literally titled EC_HTABLE_ITER_GET_VAL(3) β go forth and iterate 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