al_ustr_size(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌈 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