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