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 π«Ά:
ck_hs_init(3)ck_hs_move(3)ck_hs_destroy(3)CK_HS_HASH(3)ck_hs_iterator_init(3)ck_hs_next(3)ck_hs_get(3)ck_hs_put(3)ck_hs_put_unique(3)ck_hs_set(3)ck_hs_fas(3)ck_hs_remove(3)ck_hs_grow(3)ck_hs_rebuild(3)ck_hs_gc(3)ck_hs_reset(3)ck_hs_reset_size(3)ck_hs_stat(3)
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
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms