1al_ustr_dup_substr(3) al_ustr_dup_substr(3)
2
3
4
6 al_ustr_dup_substr - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_USTR *al_ustr_dup_substr(const ALLEGRO_USTR *us, int start_pos,
12 int end_pos)
13
15 Return a new copy of a string, containing its contents in the byte
16 interval [start_pos, end_pos). The new string will be NUL terminated
17 and will need to be freed with al_ustr_free(3).
18
19 If necessary, use al_ustr_offset(3) to find the byte offsets for a
20 given code point that you are interested in.
21
23 al_ustr_dup(3), al_ustr_free(3)
24
25
26
27Allegro reference manual al_ustr_dup_substr(3)