ck_bitmap_size(3)

ck_bitmap_size3

Returns necessary number of bytes for bitmap

Usage

#include <ck_bitmap.h>

unsigned int

ck_bitmap_size(unsigned int n_bits);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_bitmap_size() function returns the number of bytes that are necessary to allocate for a bitmap that will contain the number of bits specified by n_bits.

This function is used to determine how many bytes to allocate for dynamically created bitmap objects. The allocated object must still be initialized using ck_bitmap_init(3).

Return values

This function returns a non-zero value.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.