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 defer is true β€” the allocator must destroy the memory using safe memory reclamation. slow and careful, like her. 🧚
  • if defer is 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:

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