TICKIT_PEN_ATTRNAME(3)

πŸ“¦ version 0.4.1, in ubuntu jammy

πŸ’– TICKIT_PEN_ATTRNAME(3) πŸ’–

okay bestie, welcome to the TICKIT_PEN_ATTRNAME page from the Library Functions Manual β€” this is your lil' glow-up guide to pen attributes, and honestly? it's giving reference material in the best way. no cap.


✨ NAME ✨

tickit_pen_attrname β€” return the name of a pen attribute. yes, that's literally the whole job and she does it flawlessly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <tickit.h>

const char * tickit_pen_attrname(TickitPenAttr attr);
TickitPenAttr tickit_pen_lookup_attr(const char * name);

Link with -ltickit.

🌸 bestie don't forget that -ltickit at link time, she will NOT compile without it and you will be sad.

πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_pen_attrname() returns the name of the given pen attribute. these names are the lowercase strings given in tickit_pen(7). so like, hand it an attribute and it hands you back the cute lowercase name, periodt ✨

tickit_pen_lookup_attr() does the glow-up in reverse β€” you give it a name and it returns the attribute constant for that name. but listen: if the name is not recognised then -1 is returned. so check for that -1 before you go treating it like a real attribute, iykyk 😭


🌈 RETURN VALUE 🌈

  • tickit_pen_attrname() returns a constant string pointer. don't go freeing it or mutating it, she's constant for a reason 🫢
  • tickit_pen_lookup_attr() returns an attribute constant, or -1 if the name wasn't recognised. that -1 is your vibe check failing πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page bestie, you ate it up fr fr πŸ”₯ this was TICKIT_PEN_ATTRNAME(3) from the Library Functions Manual β€” mwah, go slay your terminal rendering πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from