CK_BITMAP_ITERATOR_INIT(3)
π CK_BITMAP_ITERATOR_INIT β initialize bitmap iterator π
okay bestie so this is a Concurrency Kit page, aka libck, and you link it with -lck. it's a tiny little function but it's the main character of getting your bitmap loop started, so let's go π¦
β¨ SYNOPSIS β¨
#include <ck_ht.h>
void
ck_bitmap_iterator_init(ck_bitmap_iterator_t *iterator,
ck_bitmap_t *bitmap);
that's it. two args. no drama. π
πΈ DESCRIPTION πΈ
so ck_bitmap_iterator_init() initializes the object that iterator points at, and it sets it up to be used with bitmap. like, you're basically introducing them to each other. matchmaker era π
and why do you even want an iterator, you ask? because an iterator is what you use to iterate through the set bits of a bitmap β and you do that with the ck_bitmap_next(3) function. so this init call is literally the first step of that whole journey. no init, no next, no bits. iykyk β¨
fr fr, this function is the setup, and ck_bitmap_next(3) is the payoff. you need both. don't skip the glow-up phase π«Ά
π RETURN VALUES π
ck_bitmap_iterator_init() does not return a value. it's void, bestie. it just does the thing and leaves. no receipts, no return slip. iconic behavior honestly π
π§ ERRORS π§
this function will not fail. not even a little. no error codes, no drama, no "whoops bestie". it simply cannot flop πβ¨
π SEE ALSO π
ck_bitmap_base(3)ck_bitmap_size(3)ck_bitmap_init(3)ck_bitmap_set(3)ck_bitmap_reset(3)ck_bitmap_clear(3)ck_bitmap_bits(3)ck_bitmap_buffer(3)ck_bitmap_next(3)
more lore is available at http://concurrencykit.org/ β go read, bestie, it's giving homework but the fun kind ππ
and that's the whole page!! this one came from April 27, 2012 and it's page CK_BITMAP_ITERATOR_INIT(3) of the Concurrency Kit manual. mwah, slay, go iterate those bits π
πΈβ
π¦ 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
- Copyright 2012-2013 Shreyas Prasad
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms