TICKIT_STRINGPOS_ZERO(3)

πŸ’– TICKIT_STRINGPOS_ZERO πŸ’–

okay bestie, so this one lives in section 3 of the Library Functions Manual β€” that's the "library calls" section, iykyk. It's called tickit_stringpos_zero, and it is exactly as extra as it sounds. πŸŽ€


✨ NAME ✨

tickit_stringpos_zero β€” clear the fields of a string position counter. that's it. that's the whole job. and it does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

#include <tickit.h>

void tickit_stringpos_zero(TickitStringPos *pos);

and don't forget, you gotta link with -ltickit or nothing's gonna happen, no cap. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so tickit_stringpos_zero() takes your pos β€” a TickitStringPos β€” and sets its four counter fields to zero. all four. every single one. zeroed. done. slay. ✨

now here's the tea: this operation is already done implicitly by tickit_utf8_count(3), so like, you're not obligated to call it yourself. πŸ™ˆ

but here's where it eats: this function is genuinely useful when you want to initialise a counter to zeros before entering a loop, and then call tickit_utf8_countmore(3) on every iteration instead. it's giving setup-girl. it's giving pre-game. it's giving main character energy at the top of your for-loop. πŸ’–

not me hyping up a function whose entire personality is "writes zero four times" 😭 but honestly? iconic. consistency queen. she knows what she is.

πŸ”₯ RETURN VALUE πŸ”₯

tickit_stringpos_zero() returns no value. nothing. void. she gives you nothing back and honestly that's the vibe. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page bestie, go forth and zero those counters 🌈⭐

this little angel comes to you courtesy of the Library Functions Manual β€” the TICKIT_STRINGPOS_ZERO(3) page, no date stamped on it, just vibes and a void return. mwah. πŸ’œπŸŽ€