ALLEGRO_USTR(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALLEGRO_USTR β€” Allegro 5 API ✨

okay bestie, welcome to the ALLEGRO_USTR(3alleg5) page, it's short but it's iconic, let's go 🫢


🌸 NAME 🌸

ALLEGRO_USTR β€” literally the Allegro 5 API, that's the whole name, no notes πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

typedef struct _al_tagbstring ALLEGRO_USTR;

that's it. that's the whole thing. short king energy πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so ALLEGRO_USTR is an opaque type that represents a string. like, you don't get to peek inside it, you just trust it. main character with a mysteriously locked diary vibe πŸ™ˆ

normally these lil guys hold UTF-8 encoded strings β€” that's the default, that's the vibe. but here's the tea: they can also be used to hold any byte sequences, including NULs. yes, NULs, the ones that usually end everything early like a party that got shut down 😭 not here tho. no cap, they just live in there.

quick recap fr fr: UTF-8 by default, but raw bytes and embedded NULs are totally allowed. she contains multitudes ✨🌈

and that's the whole page bestie, go forth and sling some strings πŸ’œ

this was ALLEGRO_USTR(3alleg5) from the Allegro reference manual β€” mwah, stan, bye πŸŽ€πŸ’–πŸ§š

πŸ“¦ where this page comes from