TICKIT_STRING_LEN(3)

πŸ’– TICKIT_STRING_LEN(3) πŸ’–

okay bestie so you're looking at TICKIT_STRING_LEN(3) from the Library Functions Manual ✨ and it's literally the cutest tiniest little query function in the whole tickit friend group. she does one (1) thing and she does it flawlessly, main character energy fr fr πŸŽ€


🌸 NAME 🌸

tickit_string_get β€” query the length of a counted string πŸ’…

not me clocking that the NAME line says tickit_string_get while the page is TICKIT_STRING_LEN(3)… that's just what the page says bestie, I'm reporting it exactly as I found it πŸ™ˆ the actual function we're hyping up below is tickit_string_len() and she's iconic.

✨ SYNOPSIS ✨

#include <tickit.h>

size_t tickit_string_len(const TickitString *s);

and then you gotta link with -ltickit or she simply will not show up to the party 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: tickit_string_len() hands you back the size, in bytes, of the character buffer that's stored inside your counted string instance πŸ’–

that's it. that's the whole function. she counts the bytes in the stored character buffer of the counted string instance and gives you the number. no drama, no side quests, just bytes ✨


πŸŽ€ RETURN VALUE πŸŽ€

tickit_string_len() returns a size in bytes. periodt. πŸ’… a size_t, a number, the byte count, that's the whole return value story πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too bestie, they're all in the same friend group and they slay together 🌈


and that's the whole page, no cap πŸ’œ this was TICKIT_STRING_LEN(3) from the Library Functions Manual β€” thank you for coming to my ted talk, mwah, bye πŸ§šβœ¨πŸ’–