CK_HT_ENTRY_KEY(3)

πŸ’– CK_HT_ENTRY_KEY β€” ok bestie let's get ur key back πŸ’–

So like, ck_ht_entry_key(3) is the manual page, and she lives in the Concurrency Kit library, aka libck, which you link with -lck. 🌸


✨ NAME ✨

ck_ht_entry_key β€” return pointer to key as specified in hash table entry πŸ”‘βœ¨


πŸ“š LIBRARY πŸ“š

Concurrency Kit (libck, -lck) 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <ck_ht.h>

void *
ck_ht_entry_key(ck_ht_entry_t *entry);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk. The ck_ht_entry_key() function will return the key pointer as specified in the object pointed to by the entry argument. That's it. That's the whole job. She's giving "hand u the key, no questions asked" energy πŸ’…

Heads up though! It is expected that the entry is associated with a hash table initialized with CK_HT_MODE_BYTESTRING β€” go peek at ck_ht_init(3) if u need the lore on that one πŸ“–

🌈 RETURN VALUES 🌈

ck_ht_entry_key() returns NULL if the entry is empty. Empty entry = no key = NULL, periodt. πŸ’€


πŸ’€ ERRORS πŸ’€

Behavior is undefined if entry has not been initialized. Not "weird", not "kinda buggy" β€” undefined. Like, do not pass her an uninitialized entry, that is NOT the vibe, i'm begging u πŸ˜­πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

The whole bestie squad, in order:

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


And that's a wrap, bestie! This page is dated March 30, 2012, and it's page CK_HT_ENTRY_KEY(3) of the manual β€” go forth and grab ur keys responsibly πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from