ck_ht_entry_key_length(3)

ck_ht_entry_key_length3

Returns the length of the key specified in the argument

Usage

#include <ck_ht.h>

uint16_t

ck_ht_entry_key_length(ck_ht_entry_t *entry);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ht_entry_key_length() function will return the length of the key associated with the object pointed to by the entry argument.

It is expected that the entry is associated with a hash table initialized with CK_HT_MODE_BYTESTRING (see ck_ht_init(3) for more information).

Return values

ck_ht_entry_key_length() returns 0 if the entry is empty.

Errors

Behavior is undefined if entry has not been initialized.

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.