al_ustr_size_utf16(3)

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

✨ NAME ✨

al_ustr_size_utf16 β€” Allegro 5 API

This page lives in the Library Functions Manual, and it's all about al_ustr_size_utf16(3) from the Allegro 5 API, bestie πŸ¦‹

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

size_t al_ustr_size_utf16(const ALLEGRO_USTR *us)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this one is lowkey a size-checker: al_ustr_size_utf16 returns the number of bytes required to encode the string in UTF-16, and yes, that count includes the terminating 0. ✨

It's usually called before al_ustr_encode_utf16(3) to determine the size of the buffer to allocate. That's the whole vibe: check the size first, then allocate, slay πŸ’…

πŸŽ€ SEE ALSO πŸŽ€


Brought to you by the Allegro reference manual β€” source/version energy β€” and the date on this page is literally not stamped, so we're not inventing one, bestie πŸ«ΆπŸ’–

πŸ“¦ 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