CK_HT_ITERATOR_INIT(3)
π CK_HT_ITERATOR_INIT π
okay bestie so this one lives in the Concurrency Kit β that's libck, and you link it with -lck. it's giving β¨concurrent data structuresβ¨ and today we're talking about the little baby that is ck_ht_iterator_init(3).
πΈ NAME πΈ
ck_ht_iterator_init β initialize hash table iterator π
π¦ LIBRARY π¦
Concurrency Kit β that's libck, and you compile with -lck. periodt.
β¨ SYNOPSIS β¨
#include <ck_ht.h>
ck_ht_iterator_t iterator = CK_HT_ITERATOR_INITIALIZER
void
ck_ht_iterator_init(ck_ht_iterator_t *iterator);
π DESCRIPTION π
so ck_ht_iterator_init() takes the object that iterator points to and initializes it. that's it. that's the whole job. she's a simple girl and she eats every time π₯
but wait, there's a second option β you can statically initialize an iterator instead, just by handing it the value CK_HT_ITERATOR_INITIALIZER. no function call needed, no drama, just vibes π
and what's an iterator even for, you ask? an iterator is what you use to walk through hash table entries with ck_ht_next(3). it's your little tour guide through the table, lowkey essential, iykyk π
π«Ά RETURN VALUES π«Ά
ck_ht_iterator_init() does not return a value. nothing. nada. she simply does the thing and dips π¨
π ERRORS π
this function will not fail. no cap. she cannot fail, she's built different, she's the main character ππ
π₯ SEE ALSO π₯
the whole friend group, all in one place:
ck_ht_stat(3)ck_ht_init(3)ck_ht_destroy(3)ck_ht_hash(3)ck_ht_hash_direct(3)ck_ht_set_spmc(3)ck_ht_put_spmc(3)ck_ht_gc(3)ck_ht_get_spmc(3)ck_ht_grow_spmc(3)ck_ht_remove_spmc(3)ck_ht_count(3)ck_ht_reset_size_spmc(3)ck_ht_entry_empty(3)ck_ht_entry_key_set(3)ck_ht_entry_key_set_direct(3)ck_ht_entry_key_length(3)ck_ht_entry_key(3)ck_ht_entry_set(3)ck_ht_entry_set_direct(3)ck_ht_entry_key_direct(3)ck_ht_entry_value(3)ck_ht_entry_value_direct(3)ck_ht_next(3)
more tea available at http://concurrencykit.org/ π
and that's the whole page bestie!! this version is from March 30, 2012, brought to you by Concurrency Kit β go forth and iterate, you absolute icon ππ§πΈ
π¦ where this page comes from
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms