TICKIT_UTF8_SEQLEN(3)

✨ TICKIT_UTF8_SEQLEN ✨

okay bestie, so we're in section 3 of the Library Functions Manual today and the function we're obsessing over is tickit_utf8_seqlen πŸ’…


🌸 NAME 🌸

tickit_utf8_seqlen β€” figure out the length of a UTF-8 codepoint encoding πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <tickit.h>

int tickit_utf8_seqlen(long codepoint);

Link with -ltickit. 🫢


πŸ’– DESCRIPTION πŸ’–

so like, tickit_utf8_seqlen() takes your codepoint and goes how many bytes does the UTF-8 encoding of this thing actually need?? and then it returns that number. that's it. that's the whole vibe. ✨


πŸ‘‘ RETURN VALUE πŸ‘‘

tickit_utf8_seqlen() hands you back a byte count, no cap. πŸ’€


🌈 SEE ALSO 🌈


and that's the whole page, bestie, slay πŸ’– this was the Library Functions Manual, section 3, brought to you by the TICKIT_UTF8_SEQLEN(3) girlies β€” go read tickit_utf8_put(3) next, it's giving main character energy πŸŽ€βœ¨