CK_HS_REMOVE(3)
π CK_HS_REMOVE(3) π
okay bestie, gather round, because we're talking about ck_hs_remove(3) β the manual page, the moment, the icon. this is the one that β¨removes a key from a hash setβ¨ and honestly? she ate.
π LIBRARY π
Concurrency Kit (that's libck, and you link it with -lck, don't forget the flag or she simply will not show up π
)
β¨ SYNOPSIS β¨
#include <ck_hs.h>
void *
ck_hs_remove(ck_hs_t *hs, unsigned long hash, const void *key);
πΈ DESCRIPTION πΈ
so here's the tea, bestie. ck_hs_remove(3) is gonna attempt to remove the key that you hand it in the key argument, out of the hash set that hs is pointing at. π«Ά
and listen, the key you pass in? she's expected to have the hash value that you put in the hash argument. and where did that hash come from? from the CK_HS_HASH(3) macro, which you ran earlier, obviously. no cap. π₯
if the call to ck_hs_remove(3) went off without a hitch, then the key that was chillin' inside the hash set gets returned to you. but if that key was not a member of the hash set? you get NULL. that's it, that's the deal. π
π RETURN VALUES π
- upon successful completion,
ck_hs_remove(3)returns a pointer to a key π - otherwise, it returns
NULLon failure. sad girl hours, but that's the contract. π
π¦ ERRORS π¦
behavior is UNDEFINED ifkeyorhsare uninitialized. like, genuinely undefined. not "kinda weird", not "a little off" β undefined. do not pass her uninitialized stuff, bestie, i am begging. π
π SEE ALSO π
the whole squad, 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_grow(3)ck_hs_gc(3)ck_hs_rebuild(3)ck_hs_count(3)ck_hs_reset(3)ck_hs_reset_size(3)ck_hs_stat(3)
additional information available at http://concurrencykit.org/ β go look, it's giving documentation excellence. π
k bye ily, this page was brought to you by the Concurrency Kit, dated September 17, 2012 β yeah she's been iconic since 2012, main character energy from day one, periodt. βπ§π
π¦ 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