CK_HT_ENTRY_EMPTY(3)

πŸ’– ck_ht_entry_empty β€” the manual page, bestie edition πŸ’–

okay so you're here because you're poking at ck_ht_entry_empty from the Concurrency Kit, aka libck, which you link with -lck. and honestly? iconic behavior. let's get into it. πŸ¦‹


✨ NAME ✨

ck_ht_entry_empty β€” determine whether entry contains a key-value pair

like, is this thing empty or not. that's the whole job. that's the assignment. πŸ’…


πŸ“š LIBRARY πŸ“š

Concurrency Kit (libck, -lck)


🌸 SYNOPSIS 🌸

#include <ck_ht.h>

bool
ck_ht_entry_empty(ck_ht_entry_t *entry);

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe. ck_ht_entry_empty() returns false if entry points to a valid key-value pair. if entry does not point to a valid key-value pair, it returns true. simple as that, no cap. ✨

and there's a lil prerequisite, bestie, so listen up: it's expected that the object pointed to by entry was initialized by a preceding call to the ck_ht_entry_set family of functions, the ck_ht_get_spmc(3) function, or the ck_ht_set_spmc(3) function. don't come in cold, okay? 😭


πŸ’€ ERRORS πŸ’€

Behavior is undefined if entry has not been initialized.

fr fr, undefined is undefined. not "probably fine", not "eh it'll work". undefined. initialize your entry first, bestie, that's the whole plot. 🫢


🌈 SEE ALSO 🌈

the whole friend group, in order:

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


and that's the page!! this one's from March 29, 2012, brought to you by the Concurrency Kit crew, filed under CK_HT_ENTRY_EMPTY(3) β€” go check whether your entries are empty, bestie, and stay initialized out there πŸ’œπŸ§š

πŸ“¦ where this page comes from