CK_HT_ENTRY_VALUE_DIRECT(3)

✨ ck_ht_entry_value_direct β€” the manual page bestie πŸ’–

okay so you're here for ck_ht_entry_value_direct(3), and honestly? iconic choice. let's get into it 🫢


🌸 NAME 🌸

ck_ht_entry_value_direct β€” return value as specified in hash table entry ✨


πŸ“š LIBRARY πŸ“š

Concurrency Kit (that's libck, link it with -lck) πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ck_ht.h>

uintptr_t
ck_ht_entry_value_direct(ck_ht_entry_t *entry);

πŸ¦‹ DESCRIPTION πŸ¦‹

so. the ck_ht_entry_value_direct() function will return the value of the key-value pair as specified in the object pointed to by the entry argument. that's it. that's the whole job. she's simple, she's direct (literally), she serves πŸ’β€β™€οΈ

and lowkey important: it is expected that the entry is associated with a hash table initialized with CK_HT_MODE_DIRECT β€” go peek at ck_ht_init(3) if you need the full lore, bestie πŸ‘‘


πŸ’– RETURN VALUES πŸ’–

ck_ht_entry_value_direct() returns the value stored in the object pointed to by the entry argument. no cap, that's the return value, that's the vibe 🌈


πŸ’€ ERRORS πŸ’€

Behavior is undefined if entry has not been initialized or if the key is empty. like, not "oopsie" undefined β€” undefined undefined. do not test her, she will not be normal about it 😭 please initialize your entries, i am begging πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:

Additional information available at http://concurrencykit.org/ 🧚


and that's the page, bestie πŸ’œ this one's from Concurrency Kit, dated March 30, 2012 β€” yes she's been slaying since 2012, main character energy since day one πŸ‘‘πŸŒΈβœ¨

πŸ“¦ where this page comes from