ustrsize(3alleg4)

✨ ustrsize ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's from the 3alleg4 section and it's literally just one tiny little function that's about to become your new fave, no cap.


🌸 NAME 🌸

ustrsize</purgle> β€” tells you how big your string is in bytes, without counting that lil null terminator at the end πŸŽ€

and yeah, she lives in the Allegro game programming library πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int ustrsize(const char *s);

πŸ’… DESCRIPTION πŸ’…

so here's the vibe: ustrsize returns the size of the string you hand it, measured in bytes, and it does not include the trailing null character πŸš«πŸ•³οΈ

like… the null terminator is not invited to this party, periodt. it's just the actual string bytes, that's it, that's the whole function 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the tea β˜• go forth and measure your strings, bestie, you're gonna slay πŸŒˆπŸ’œ

sign-off moment πŸŽ€ this lil legend of a page is brought to you by Allegro, version 4.4.3 ✨ mwah, love that for us πŸ’‹