1al_ustr_truncate(3) Library Functions Manual al_ustr_truncate(3)
2
3
4
6 al_ustr_truncate
7
9 #include <allegro5/allegro.h>
10
11 bool al_ustr_truncate(ALLEGRO_USTR *us, int start_pos)
12
14 Truncate a portion of a string at byte offset start_pos onwards.
15 start_pos can be past the end of the string (has no effect) but cannot
16 be less than 0.
17
18 Returns true on success, false on error.
19
21 al_ustr_remove_range(3), al_ustr_ltrim_ws(3), al_ustr_rtrim_ws(3),
22 al_ustr_trim_ws(3)
23
24
25
26Allegro reference manual al_ustr_truncate(3)