ck_bitmap_next(3) iterate to the next set bit in bitmap

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_bitmap.h Ft bool Fn ck_bitmap_next ck_bitmap_t *bitmap ck_bitmap_iterator_t iterator unsigned int *bit

DESCRIPTION

The 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.

It is expected that Fa iterator has been initialized using the ck_bitmap_iterator_init3 function.

RETURN VALUES

If 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.

ERRORS

Behavior is undefined if Fa iterator or Fa bitmap are uninitialized.