ck_ht_entry_key_direct3
Return key value as specified in hash table entry
Usage
#include <ck_ht.h>
uintptr_t
ck_ht_entry_key_direct(ck_ht_entry_t *entry);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_ht_entry_key_direct() function will return the key value as specified in 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_DIRECT (see ck_ht_init(3) for more information).
Return values
ck_ht_entry_key_direct() returns 0 if the entry is empty. Otherwise, it returns the key value stored in the object pointed to by the entry argument.
Errors
Behavior is undefined if entry has not been initialized.
Releases
Unchanged in 5 releases since Debian 8 (Jessie).