CK_HS_ITERATOR_INIT(3)
π ck_hs_iterator_init β initialize hash set iterator
okay bestie, welcome to the CK_HS_ITERATOR_INIT(3) page, it's giving short-and-sweet and honestly? iconic. this is the little setup ritual you do before you loop through a hash set. no cap.
π LIBRARY
this one lives in Concurrency Kit β that's libck, and you link it with -lck. mwah. π
β¨ SYNOPSIS β¨
#include <ck_hs.h>
ck_hs_iterator_t iterator = CK_HS_ITERATOR_INITIALIZER
void
ck_hs_iterator_init(ck_hs_iterator_t *iterator);
like, look at her. two whole ways to start an iterator and both are valid. we love options. π
πΈ DESCRIPTION πΈ
so the ck_hs_iterator_init(3) function initializes the object that iterator points at. that's the whole job. she's a one-task queen and she ate.
or, if you're feeling β¨staticβ¨ about it, you can skip the function call entirely and just statically initialize your iterator by assigning it the CK_HS_ITERATOR_INITIALIZER value. literally just declare-and-go. no function call, no drama. π¦
and what's the iterator for, you ask? it's the thing you use to walk through your hash set entries, hand-in-hand with the ck_hs_next(3) function. iterator + ck_hs_next(3) = the duo of the century, fr fr. π
π«Ά RETURN VALUES π«Ά
ck_hs_iterator_init(3) has no return value. she returns void. nothing to check, nothing to unwrap. go in peace. π
π ERRORS
this function will not fail. ever. zero. none. she does not know how. the vibe check is passed before you even get here. πβ¨
π SEE ALSO π
the whole squad, bestie, all of them:
ck_hs_init(3)ck_hs_move(3)ck_hs_destroy(3)CK_HS_HASH(3)ck_hs_next(3)ck_hs_get(3)ck_hs_put(3)ck_hs_put_unique(3)ck_hs_set(3)ck_hs_fas(3)ck_hs_remove(3)ck_hs_grow(3)ck_hs_rebuild(3)ck_hs_gc(3)ck_hs_count(3)ck_hs_reset(3)ck_hs_reset_size(3)ck_hs_stat(3)
more lore available at http://concurrencykit.org/ π§
and that's the page, babe. go initialize something. π
Concurrency Kit (that's libck, linked with -lck, in case you forgot in the last 30 seconds), dated September 17, 2012 β and the manual name is CK_HS_ITERATOR_INIT(3) π mwah, bye bestie! π
π¦ 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