al_ustr_encode_utf16(3)
π 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