CK_ARRAY_REMOVE(3)
β¨ ck_array_remove β the "okay bestie you're OUT" of arrays β¨
So the manual name is CK_ARRAY_REMOVE(3), and she's serving attempt immediate or deferred removal of a pointer from an array. Yes, that's a lot of words. Basically: get this pointer OUT of this array, maybe right now, maybe later, we'll see. π«Ά
LIBRARY β the one and only Concurrency Kit (that's libck, link her with -lck). π
πΈ SYNOPSIS πΈ
#include <ck_array.h>
bool
ck_array_remove(ck_array_t *array, void *pointer);
π DESCRIPTION π
Okay so ck_array_remove(3) is gonna try to remove the value of pointer into the array pointed to by array. (Yes, "into" β that's what the page says, don't @ me, I'm just the messenger π)
Here's the tea though: this operation is also free to apply the operation immediately if there's an opportunity for elimination with a pending (uncommitted) put operation. Like, if there's a put just sitting there uncommitted and they cancel each other out? She will absolutely take that shortcut. Main character efficiency. β¨
But if no elimination was possible? Then the function may require to allocate more memory. π Just a lil memory moment, no big deal.
π RETURN VALUES π
- It returns
trueif the remove operation succeeded. Slay. β - It returns
falseotherwise β and that's because of internal allocation failures or because the value did not exist. (Rude, but valid.) π
π¦ SEE ALSO π¦
The whole girl squad, go say hi:
ck_array_init(3)ck_array_commit(3)ck_array_remove(3)(yes she's listing herself, iconic, self-love π )ck_array_put_unique(3)ck_array_deinit(3)ck_array_length(3)ck_array_buffer(3)ck_array_initialized(3)CK_ARRAY_FOREACH(3)
More lore available at http://concurrencykit.org/ π
Okay that's the whole page, bestie, you ate that. πβ¨
This edition was dated October 18, 2013, and it belongs to CK_ARRAY_REMOVE(3). No cap. ππ¦π
π¦ 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 2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms