1al_ustr_offset(3)                                            al_ustr_offset(3)
2
3
4

NAME

6       al_ustr_offset - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              int al_ustr_offset(const ALLEGRO_USTR *us, int index)
12

DESCRIPTION

14       Return the byte offset (from the start of the string) of the code point
15       at the specified index in the string.   A  zero  index  parameter  will
16       return  the  first  character  of the string.  If index is negative, it
17       counts backward from the end of the string, so  an  index  of  -1  will
18       return an offset to the last code point.
19
20       If  the  index is past the end of the string, returns the offset of the
21       end of the string.
22

SEE ALSO

24       al_ustr_length(3)
25
26
27
28Allegro reference manual                                     al_ustr_offset(3)
Impressum