1al_ustr_offset(3)          Library Functions Manual          al_ustr_offset(3)
2
3
4

NAME

6       al_ustr_offset
7

SYNOPSIS

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

DESCRIPTION

14       Return  the  offset (in bytes from the start of the string) of the code
15       point at the specified index in the string.   A  zero  index  parameter
16       will  return  the first character of the string.  If index is negative,
17       it 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