TICKIT_RECTSET_NEW(3)

✨ TICKIT_RECTSET_NEW ✨

okay bestie, so this is a page from the Library Functions Manual β€” it's TICKIT_RECTSET_NEW(3), and it's literally all about making and unmaking a rectangle set. πŸ’–


πŸŽ€ NAME πŸŽ€

tickit_rectset_new, tickit_rectset_destroy β€” create or destroy a rectangle set


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

TickitRectSet *tickit_rectset_new(void);
void tickit_rectset_destroy(TickitRectSet *trs);

Link with -ltickit.


🌸 DESCRIPTION 🌸

tickit_rectset_new() creates a brand-new TickitRectSet instance. Not me being like "it comes with stuff in it" β€” no, bestie, it's initially empty, containing no regions. A blank slate. Main character energy, zero content. πŸ’…

tickit_rectset_destroy() destroys the given instance and releases any resources controlled by it. Cleanup era. Say goodbye properly. 🫢


⭐ RETURN VALUE ⭐

If it slays, tickit_rectset_new() returns a pointer to the new instance. πŸ”₯

If it does not slay, NULL is returned, with errno set to indicate the failure. 😭

tickit_rectset_destroy() returns no value. It's giving void, and that's iconic.


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, no cap. this one lives under the title TICKIT_RECTSET_NEW(3) with no fancy version or date line to brag about β€” just the name, fr fr. go make some rectangles, bestie πŸ¦‹πŸ’œ