ck_bitmap_bts(3) set the bit at the specified index and fetch its original value

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_bitmap.h Ft bool Fn ck_bitmap_bts ck_bitmap_t *bitmap unsigned int n

DESCRIPTION

Fn ck_bitmap_bts sets the bit at the offset specified by the argument Fa n to 1 and fetches its original value.

RETURN VALUES

This function returns the original value of the bit at offset Fa n in Fa bitmap .