CK_ARRAY_BUFFER(3)
π ck_array_buffer β bestie, it hands you the receipts πβ¨
okay so this is ck_array_buffer(3) from the Concurrency Kit, aka libck (link it with -lck, mwah π
). It's the little function that goes "hey, here's the array of pointers your readers can currently see, and also here's how long it is." iconic behaviour honestly.
πΈ SYNOPSIS πΈ
#include <ck_array.h>
void *
ck_array_buffer(ck_array_t *array, unsigned int *length);
π¦ DESCRIPTION π¦
so ck_array_buffer(3) gives you back a pointer to the array of pointers that readers can currently see in array β specifically, the state of things after the last commit operation. like, the version that's actually live for the readers, not some half-finished draft bestie π
and the unsigned int that length points at? yeah, that gets updated to reflect the length of the array. so you get the pointer AND the count. two for one, we love a multitasker π«Ά
β¨ RETURN VALUES β¨
it returns a pointer to an array of pointers. that's it, that's the vibe. periodt. π
π SEE ALSO π
the whole friend group, obviously:
ck_array_commit(3)ck_array_put(3)ck_array_put_unique(3)ck_array_remove(3)ck_array_init(3) ck_array_deinit(3)ck_array_length(3)ck_array_initialized(3)CK_ARRAY_FOREACH(3)
more lore is available at http://concurrencykit.org/ π
no cap, that's genuinely everything this one does. short queen, zero filler, ate and left no crumbs π
later babes β this page came from October 18, 2013, and it's hanging out in the CK_ARRAY_BUFFER(3) section of the manual πβ¨
π¦ 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