TICKIT_PEN_EQUIV_ATTR(3)
β¨ TICKIT_PEN_EQUIV_ATTR β¨
okay bestie, so this one lives in the Library Functions Manual and it's literally the vibe-check function for pens π
tickit_pen_equiv_attr β say it with me, it's giving "do these two pens match or not".
π NAME π
tickit_pen_equiv_attr β the girlies who test if two pens have an equivalent attribute value π«Ά
π¦ SYNOPSIS π¦
#include <tickit.h>
bool tickit_pen_equiv_attr(TickitPen *a, TickitPen *b,
TickitPenAttr attr);
bool tickit_pen_equiv(TickitPen *a, TickitPen *b)
Link with -ltickit.
yes bestie, that second prototype really does end without a semicolon up there. we don't ask questions, we just copy it exactly, periodt π
πΈ DESCRIPTION πΈ
tickit_pen_equiv_attr() is the "are we matching or are we not" check for one specific attribute. You hand it two pen instances (a and b) plus a TickitPenAttr attr, and it tells you if they have equivalent values for that attribute. It returns true in exactly two scenarios:
- neither pen has the attribute defined at all π«₯ β no definition on either side still counts as equivalent, slay
- both pens have it defined, and they're defined to the same value π
So basically: if one of them has it and the other doesn't, that's a no. If both have it but the values differ, also a no. iykyk.
tickit_pen_equiv() is the same energy but turned all the way up β it tests whether two given pen instances have equivalent values for all attributes. the full glow-up, the whole vibe check, every attribute at once β¨
π₯ RETURN VALUE π₯
tickit_pen_equiv_attr() and tickit_pen_equiv() return a boolean. that's it, that's the whole thing β true or false, no in-between, no main character drama π
π 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_attr(3)tickit_pen(7)tickit(7)
and that's the whole page, bestie π this icon of a manual comes from the tickit Library Functions Manual, filed under TICKIT_PEN_EQUIV_ATTR(3) β go forth and compare your pens, 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