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 π
tickit_pen_new(3)tickit_pen_set_bool_attr(3)tickit_pen_set_int_attr(3)tickit_pen_set_colour_attr(3)tickit_pen_clear(3)tickit_pen(7)tickit(7)
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.
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms