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 π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms