ustrlen(3)
β¨ ustrlen β bestie edition β¨
okay so this is ustrlen(3), straight out of the Allegro game programming library π it counts characters, that's the whole gig, and it's lowkey iconic for it.
πΈ NAME πΈ
ustrlen β tells you the number of characters in a string. part of the Allegro game programming library, no cap π
π¦ SYNOPSIS π¦
#include <allegro.h>
int ustrlen(const char *s);
π DESCRIPTION π
so like, this function returns the number of characters in s. that's it. that's the whole function. she's simple, she's clean, she ate π
but wait β plot twist β this number doesn't have to equal the string's size in bytes. the way that characters and bytes are just not the same thing?? π yeah. ustrlen is counting actual characters, so if you're out here assuming one char = one byte you are gonna have a bad time, bestie. keep that in mind, fr fr π
π SEE ALSO π
version 4.4.3 of Allegro, babes β that's the vibe, that's the whole page, go forth and count your characters correctly β¨π«Άπ
mwah π slay, and remember: characters β bytes, periodt πβ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms