1CK_BITMAP_TEST(3)        BSD Library Functions Manual        CK_BITMAP_TEST(3)
2

NAME

4     ck_bitmap_next — iterate to the next set bit in bitmap
5

LIBRARY

7     Concurrency Kit (libck, -lck)
8

SYNOPSIS

10     #include <ck_bitmap.h>
11
12     bool
13     ck_bitmap_next(ck_bitmap_t *bitmap, ck_bitmap_iterator_t iterator,
14         unsigned int *bit);
15

DESCRIPTION

17     The ck_bitmap_next() function will increment the iterator object pointed
18     to by iterator to point to the next set bit in the bitmap. If
19     ck_bitmap_next() returns true then the pointer pointed to by bit is ini‐
20     tialized to the number of the current set bit pointed to by the iterator
21     object.
22
23     It is expected that iterator has been initialized using the
24     ck_bitmap_iterator_init(3) function.
25

RETURN VALUES

27     If ck_bitmap_next() returns true then the object pointed to by bit con‐
28     tains a set bit. If ck_bitmap_next() returns false then value of the
29     object pointed to by bit is undefined.
30

ERRORS

32     Behavior is undefined if iterator or bitmap are uninitialized.
33

SEE ALSO

35     ck_bitmap_base(3), ck_bitmap_size(3), ck_bitmap_init(3),
36     ck_bitmap_set(3), ck_bitmap_reset(3), ck_bitmap_clear(3),
37     ck_bitmap_bits(3), ck_bitmap_buffer(3), ck_bitmap_iterator_init(3)
38
39     Additional information available at http://concurrencykit.org/
40
41                                April 27, 2012
Impressum