ck_ht_entry_key_direct(3) return key value as specified in hash table entry

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_ht.h Ft uintptr_t Fn ck_ht_entry_key_direct ck_ht_entry_t *entry

DESCRIPTION

The Fn ck_ht_entry_key_direct function will return the key value as specified in the object pointed to by the Fa entry argument.

It is expected that the entry is associated with a hash table initialized with CK_HT_MODE_DIRECT (see ck_ht_init3 for more information).

RETURN VALUES

Fn 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 Fa entry argument.

ERRORS

Behavior is undefined if Fa entry has not been initialized.