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 πŸ‘‘


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 πŸŽ€βœ¨