TICKIT_PEN_IS_NONEMPTY(3)

πŸ’… TICKIT_PEN_IS_NONEMPTY(3) β€” Library Functions Manual

okay bestie so this is a page from the Library Functions Manual about tickit_pen_is_nonempty and tickit_pen_is_nondefault β€” two lil functions that just wanna know if your pen has anything going on. let's get into it πŸŽ€


✨ NAME ✨

tickit_pen_is_nonempty, tickit_pen_is_nondefault β€” test if a pen has attributes defined


🌸 SYNOPSIS 🌸

#include <tickit.h>

bool tickit_pen_is_nonempty(TickitPen *pen);
bool tickit_pen_is_nondefault(TickitPen *pen);

Link with -ltickit.

bestie. do NOT forget the -ltickit. the linker will simply not know her and that's an L we're not taking. 😀

πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_pen_is_nonempty() checks whether a pen instance has any attribute defined on it at all. and the tea is: it returns true even if those attributes are just sitting there holding their default values. defined is defined, she's not judging. πŸ’…

tickit_pen_is_nondefault() is the pickier one. it checks whether a pen instance has any attribute defined with non-default values on it. it returns false if the pen has no defined attributes, OR if all the defined attributes are only holding the default value for their type. like, no thoughts, head empty, nothing custom going on here. πŸ’€


⭐ RETURN VALUE ⭐

tickit_pen_is_nonempty() and tickit_pen_is_nondefault() return a boolean. that's it, that's the whole vibe check. true or false, no in-between, no maybe, periodt. ✨


πŸ’– SEE ALSO πŸ’–


and that's the whole page babes 🫢 go check your pens, they deserve it. mwah. πŸ’‹

signing off from the Library Functions Manual, where this little page lives as TICKIT_PEN_IS_NONEMPTY(3) β€” yes the footer just says the same name back at you, she's iconic like that. πŸ‘‘ no cap.