al_ustr_dup_substr(3)

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

πŸ¦‹ al_ustr_dup_substr πŸ¦‹

okay so this is a Library Functions Manual page for the Allegro 5 API, and the manual name is folded in right here bestie: al_ustr_dup_substr(3). slay. it's giving β€œcopy part of a string” energy, and honestly? iconic.


πŸ’– NAME πŸ’–

al_ustr_dup_substr β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

ALLEGRO_USTR *al_ustr_dup_substr(const ALLEGRO_USTR *us, int start_pos,
   int end_pos)

🌸 DESCRIPTION 🌸

Return a new copy of a string, containing its contents in the byte interval [start_pos, end_pos). yes bestie, that’s the byte interval β€” start_pos is in, end_pos is out, and the new string will be NUL terminated and will need to be freed with al_ustr_free(3). no cap, free it. 🫢

If necessary, use al_ustr_offset(3) to find the byte offsets for a given code point that you are interested in. that’s the whole trick for lining up code points with byte positions, iykyk. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


source/version: Allegro reference manual. date: not listed on this page. that’s the footer tea, bestie. al_ustr_dup_substr(3) out. πŸ’…βœ¨

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