1ugetat(3)                       Allegro manual                       ugetat(3)
2
3
4

NAME

6       ugetat  -  Finds out the value of a character in a string. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int ugetat(const char *s, int index);
14

DESCRIPTION

16       Finds out the character value at the specified `index' in the string. A
17       zero  `index'  parameter will return the first character of the string.
18       If `index' is negative, it counts backward from the end of the  string,
19       so  an  `index'  of  `-1' will return the last character of the string.
20       Example:
21
22          int third_letter = ugetat(text_string, 2);
23

RETURN VALUE

25       Returns the character value at the specified index in the string.
26
27

SEE ALSO

29       uoffset(3), usetat(3), uinsert(3), uremove(3)
30
31
32
33Allegro                          version 4.2.2                       ugetat(3)
Impressum