---
name: "ck_bitmap_bts"
section: "3"
platform: "linux"
package: "libck-dev"
version: "0.7.2-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ck_bitmap_bts"
---

# ck\_bitmap\_bts(3)

set the bit at the specified index and fetch its original value

## NAME

**ck\_bitmap\_bts** – set the bit at the specified index and fetch its original value

## LIBRARY

Concurrency Kit (libck, -lck)

## SYNOPSIS

**#include \<ck\_bitmap.h\>**

*bool*\

**ck\_bitmap\_bts**(*ck\_bitmap\_t \*bitmap*, *unsigned int n*);

## DESCRIPTION

**ck\_bitmap\_bts**() sets the bit at the offset specified by the argument *n* to 1 and fetches its original value.

## RETURN VALUES

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

## SEE ALSO

[ck\_bitmap\_base(3)](/ck_bitmap_base/3.md), [ck\_bitmap\_size(3)](/ck_bitmap_size/3.md), [ck\_bitmap\_init(3)](/ck_bitmap_init/3.md), [ck\_bitmap\_reset(3)](/ck_bitmap_reset/3.md), [ck\_bitmap\_clear(3)](/ck_bitmap_clear/3.md), [ck\_bitmap\_set(3)](/ck_bitmap_set/3.md), [ck\_bitmap\_test(3)](/ck_bitmap_test/3.md), [ck\_bitmap\_bits(3)](/ck_bitmap_bits/3.md), [ck\_bitmap\_buffer(3)](/ck_bitmap_buffer/3.md)

Additional information available at http://concurrencykit.org/
