TICKIT_TERM_PRINT(3)

πŸ’– TICKIT_TERM_PRINT πŸ’–

okay bestie, gather round, because this is the one where we make words appear on the screen 🫢 this is tickit_term_print(3) from the Library Functions Manual, and honestly? she's giving "simple queen, no drama, just vibes." ✨


🌸 NAME 🌸

tickit_term_print β€” send text to the terminal πŸ’Œ


✨ SYNOPSIS ✨

#include <tickit.h>

void tickit_term_print(TickitTerm *tt, const char *str);
void tickit_term_printn(TickitTerm *tt, const char *str, size_t len);

void tickit_term_printf(TickitTerm *tt, const char *fmt, ...);
void tickit_term_vprintf(TickitTerm *tt, const char *fmt, va_list args);

and like, don't forget to actually link it, babe: link with -ltickit πŸŽ€


πŸ’… DESCRIPTION πŸ’…

tickit_term_print() is the moment where you hand the terminal a string and it prints that text right at the current cursor location. iconic. effortless. the cursor is the main character and you're just writing her lines. πŸ‘‘

but listen β€” that string must be free from any control characters. no sneaky escape codes, no funny business. clean text only, bestie, that's the whole rule. 🚫

then there's tickit_term_printn() β€” same energy, but it sends a string of at most len characters. so if you're like "okay but only this much please" β€” that's her. she respects the limit. πŸ’―

tickit_term_printf() is the fancy one πŸŽ€ she sends a string of text that gets built by formatting the given arguments, and she does it the exact same way that printf(3) does. so if you already know printf(3), you already know her. no new lore, no cap.

and tickit_term_vprintf()? she's tickit_term_printf()'s twin πŸ’œ same deal, except she takes her arguments in a va_list instead β€” exactly like vprintf(3) does. that's the entire difference. slay.


πŸ¦‹ RETURN VALUE πŸ¦‹

tickit_term_print(), tickit_term_printf() and tickit_term_vprintf() return no value.

literally nothing. zero. void. they show up, they do the thing, they leave. no receipts, no notes, no return statement. that's the confidence we're aspiring to. 😌✨


πŸ”₯ SEE ALSO πŸ”₯

go read those next, bestie, the lore is DEEP πŸ“šπŸ«Ά


okay that's the whole page, and as a little sign-off: this cutie lives in the Library Functions Manual, and her whole entire name is tickit_term_print(3) β€” write it down, put it on your mirror, whatever, just remember her πŸ’–πŸŽ€βœ¨