EC_HTABLE_DUP(3)
π EC_HTABLE_DUP(3) β the Libecoli Programmer's Manual, bestie edition π
okay so this is ec_htable_dup, straight out of the Libecoli Programmer's Manual, section 3 (the library-call girlies know π). she clones hash tables. that's the whole vibe. let's get into it π¦
β¨ NAME β¨
ec_htable_dup β Duplicate a hash table. yes, literally just copy the whole thing, no cap. π
πΈ SYNOPSIS πΈ
#include <ecoli/htable.h>
struct ec_htable * ec_htable_dup(
const struct ec_htable *htable /* The hash table. */
);
she takes one arg, she gives you back a whole new table. lowkey iconic.
π DESCRIPTION π
so here's the tea β β a reference counter is shared between the clones of hash tables. what that means for you, bestie, is that the objects don't get freed until the last reference is destroyed. π«Ά
it's giving "we're all in this together" energy. nobody leaves the function until every clone is done, periodt. β¨
π₯ RETURN VALUE π₯
- the duplicated hash table β slay, you got a clone π
NULLon error β anderrnois set, so check that if things go sideways π
π SEE ALSO π
the whole friend group, in the order the page lists them:
ec_htable_iter_get_key(3)ec_htable_iter_get_val(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_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)
go read them. iykyk. π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! β¨ shoutout to libecoli, dated 2026-06-11, and huge love to Olivier Matz and Robin Jarry for the copyright years 2010-2026 π«Άπ mwah, go dup some tables, you're gonna ate π
π
π¦ 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