al_ustr_new_from_utf16(3)

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

Welcome to the al_ustr_new_from_utf16(3) page from the Library Functions Manual, bestie β€” this one is lowkey iconic and it's giving β€œcopy that UTF-16 string” energy ✨

✨ NAME ✨

  • al_ustr_new_from_utf16 β€” Allegro 5 API πŸ’–

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

ALLEGRO_USTR *al_ustr_new_from_utf16(uint16_t const *s)

πŸ’… DESCRIPTION πŸ’…

Okay so bestie, what this does is create a new string that contains a copy of the 0-terminated string s, and s must be encoded as UTF-16. No cap, that part matters πŸ’œ

And listen β€” that string has to eventually be freed with al_ustr_free(3). Do not ghost that cleanup, fr fr 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

  • al_ustr_new(3) β€” the related bestie you should also peek at πŸ‘‘

Signed off with love from the Allegro reference manual πŸ’– β€” date not shown on this page, so consider this your timeless little vibe check, 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