CK_RING_INIT(3)

okay so bestie, welcome to CK_RING_INIT(3) β€” the manual page for ck_ring_init, and it’s lowkey iconic. let’s break it down πŸ’–βœ¨

✨ NAME ✨

ck_ring_init β€” initialize bounded FIFO

πŸ“š LIBRARY πŸ“š

Concurrency Kit (libck, -lck)

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ck_ring.h>

void
ck_ring_init(ck_ring_t *ring, unsigned int size);

🌸 DESCRIPTION 🌸

The ck_ring_init() function initializes a bounded FIFO buffer pointed to by ring for the storage of up to size number of pointers. The size argument must be a power-of-two greater than or equal to 4.

no cap, that power-of-two thing is not optional, bestie. 4 is the floor, and it has to be a power-of-two. periodt πŸ’…

πŸ’– RETURN VALUES πŸ’–

This function has no return value.

it’s giving void, literally β€” nothing comes back to you, and that’s the vibe 🫢

πŸ”₯ SEE ALSO πŸ”₯

Additional information available at http://concurrencykit.org/


xoxo bestie, that was CK_RING_INIT(3) from Concurrency Kit, dated April 20, 2013. stay slay πŸ‘‘πŸ’…

πŸ“¦ where this page comes from