CK_ARRAY_DEINIT(3)
π CK_ARRAY_DEINIT π
okay bestie, so this is ck_array_deinit from the Concurrency Kit manual, aka section 3 of the manual pages, and it lives in libck β you link that with -lck. it's giving cleanup era, and honestly? she ate. β¨
πΈ NAME πΈ
ck_array_deinit β destroy and deinitialize a pointer array π
no fr, that's the whole job. she's the one who turns off the lights and locks up after the party.
π¦ LIBRARY π¦
Concurrency Kit (libck, -lck)
β¨ SYNOPSIS β¨
#include <ck_array.h>
void
ck_array_deinit(ck_array_t *array, bool defer);
look at her. two arguments. no drama. π
π DESCRIPTION π
so ck_array_deinit(3) destroys the memory that's chillin' with the array pointed to by array. like, the whole array's memory? gone. bye. not me being the one to do it though β you're calling this, bestie.
now the defer argument is the main character here, so let's vibe check it:
- if
deferis true β the allocator must destroy the memory using safe memory reclamation. slow and careful, like her. π§ - if
deferis false β the allocator can just destroy that memory immediately. no waiting, no queue, just instant. π
so basically defer is the "do you need to be polite about it or can you be feral" switch. choose wisely. π«Ά
β RETURN VALUES β
this function has no return value. she gives you nothing back. not a zero, not a NULL, nothing. void. iconic, honestly. π
π SEE ALSO π
go read her friends, they're all slaying in their own ways:
ck_array_commit(3)ck_array_put(3)ck_array_put_unique(3)ck_array_remove(3)ck_array_init(3)ck_array_length(3)ck_array_buffer(3)ck_array_initialized(3)CK_ARRAY_FOREACH(3)
and if you want even more lore, it's all waiting at http://concurrencykit.org/ π
okay that's the whole page, mwah π this one's dated October 18, 2013 and she's filed under CK_ARRAY_DEINIT(3) β go forth and deinit responsibly, bestie, ily πβ¨π
π¦ 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