ck_bitmap_next (3) - Linux Man Pages
ck_bitmap_next: iterate to the next set bit in bitmap
NAMEck_bitmap_next - iterate to the next set bit in bitmap
LIBRARYConcurrency Kit (libck, -lck)
SYNOPSISIn ck_bitmap.h Ft bool Fn ck_bitmap_next ck_bitmap_t *bitmap ck_bitmap_iterator_t iterator unsigned int *bit
DESCRIPTIONThe Fn ck_bitmap_next function will increment the iterator object pointed to by Fa iterator to point to the next set bit in the bitmap. If Fn ck_bitmap_next returns true then the pointer pointed to by Fa bit is initialized to the number of the current set bit pointed to by the Fa iterator object.
RETURN VALUESIf Fn ck_bitmap_next returns true then the object pointed to by Fa bit contains a set bit. If Fn ck_bitmap_next returns false then value of the object pointed to by Fa bit is undefined.
ERRORSBehavior is undefined if Fa iterator or Fa bitmap are uninitialized.
SEE ALSOck_bitmap_base3, ck_bitmap_size3, ck_bitmap_init3, ck_bitmap_set3, ck_bitmap_reset3, ck_bitmap_clear3, ck_bitmap_bits3, ck_bitmap_buffer3, ck_bitmap_iterator_init3
Additional information available at http://concurrencykit.org/