TICKIT_PEN_CLEAR(3)

✨ TICKIT_PEN_CLEAR(3) ✨

okay bestie so this is a page from the Library Functions Manual and it's all about yeeting attributes off a pen πŸ–ŠοΈπŸ’… like literally clearing the vibes


πŸ’– NAME πŸ’–

tickit_pen_clear, tickit_pen_clear_attr β€” remove pen attributes

so true, that's the whole thing, we're removing attributes, no cap


🌸 SYNOPSIS 🌸

#include <tickit.h>

void tickit_pen_clear(TickitPen *pen);
void tickit_pen_clear_attr(TickitPen *pen, TickitPenAttr attr);

and bestie, you gotta link with -ltickit or nothing works, fr fr


πŸ¦‹ DESCRIPTION πŸ¦‹

so tickit_pen_clear() does the most dramatic thing ever and removes ALL the attributes from the pen instance. every single one. gone. clean slate. main character moment πŸ’…

then tickit_pen_clear_attr() is the pickier one β€” it removes just the given attribute from the pen instance, like it's choosing which ex to block. and here's the tea: after you call this function, tickit_pen_has_attr(3) will return false for this attribute. so it's officially not there anymore, periodt ✨


πŸŽ€ RETURN VALUE πŸŽ€

these functions return no value. nothing. void. they said "i'm not giving you anything back" and honestly? iconic πŸ™ˆ


🌈 SEE ALSO 🌈

the whole friend group, go say hi:


and that's the whole page bestie 🫢 it came from the Library Functions Manual and the footer just says TICKIT_PEN_CLEAR(3) right back at us β€” no date, no version drama, just the page name doing its little encore 😭 slay, we're done here, go clear some pens πŸ’–βœ¨