al_ustr_size(3)
π al_ustr_size(3) π
Straight from the Library Functions Manual, bestie β this is the page for al_ustr_size(3). Itβs giving tiny-but-useful Allegro 5 energy. π
π NAME π
al_ustr_size - Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
size_t al_ustr_size(const ALLEGRO_USTR *us)
π DESCRIPTION π
Okay so bestie, al_ustr_size() returns the size of the string in bytes. Thatβs literally the byte count, no cap. π«Ά
This is equal to the number of code points in the string if the string is empty or contains only 7-bit ASCII characters. So for an empty string or a pure 7-bit ASCII string, bytes and code points are twinning. β¨
π¦ SEE ALSO π¦
al_ustr_length(3)β the other length-related bestie to check out next. π
Later, bestie π
β source/version: Allegro reference manual, for the al_ustr_size(3) page. The original footer didnβt show a date, so no fake date from me β we keep it accurate, periodt. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms