CK_HS_COUNT(3)

πŸ’– CK_HS_COUNT πŸ’–

okay bestie, welcome to Concurrency Kit β€” the manual page for ck_hs_count, coming to you live from libck (link it with -lck, obviously 🫢). this one is short and sweet and honestly? iconic. it's giving "count the girlies in the group chat" energy and i'm obsessed.


✨ NAME ✨

ck_hs_count β€” returns number of entries in hash set πŸ’…


🌸 LIBRARY 🌸

Concurrency Kit (libck, -lck)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ck_hs.h>

unsigned long
ck_hs_count(ck_hs_t *hs);

πŸ’œ DESCRIPTION πŸ’œ

The ck_hs_count(3) function returns the number of keys currently stored in hs. that's it. that's the whole function. it looks at your hash set and goes "yeah there's this many in here" and honestly we love a low-drama queen πŸ‘‘


πŸ’€ ERRORS πŸ’€

🚨 bestie READ THIS PART i am so serious 🚨
  • Behavior is undefined if hs is uninitialized. do NOT be out here counting vibes in a struct you never set up, that's not the move 😭
  • Behavior is undefined if this function is called by a non-writer thread. no cap β€” only the writer thread gets to call this. if you're not the writer, sit DOWN πŸ™ˆ

πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, fr fr 🫢:

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


🌈 sign-off 🌈

and that's the tea, bestie πŸ’– this page is from September 17, 2012 and it lives under the name CK_HS_COUNT(3). go forth and count your keys, main character πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from