al_ustr_encode_utf16(3)

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

πŸ’– NAME πŸ’–

Okay so this is al_ustr_encode_utf16(3), straight outta the Library Functions Manual, and it’s giving Allegro 5 API realness. The function is al_ustr_encode_utf16 β€” Allegro 5 API. Slay.

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

size_t al_ustr_encode_utf16(const ALLEGRO_USTR *us, uint16_t *s,
   size_t n)

πŸŽ€ DESCRIPTION πŸŽ€

Okay bestie, here’s the tea: this one encodes the string into the given buffer, in UTF-16. It returns the number of bytes written. There are never more than n bytes written. The minimum size to encode the complete string can be queried with al_ustr_size_utf16(3). If the n parameter is smaller than that, the string will be truncated but still always 0 terminated. Periodt.

πŸ¦‹ SEE ALSO πŸ¦‹


Source/version vibes: Allegro reference manual β€” and the footer also repeats al_ustr_encode_utf16(3). No date on this footer, so that’s the whole cute sign-off, 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