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

NAME

6       get_datafile_property  -  Returns  the  property string for the object.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       const char *get_datafile_property(const DATAFILE *dat, int type);
14

DESCRIPTION

16       Finds the property type of a DATAFILE object. The type  parameter  must
17       be a value created with the DAT_ID() macro. Example:
18
19          const char *name;
20          ...
21          name = get_datafile_property(game_data,
22                                       DAT_ID('N','A','M','E'));
23          if (name == empty_string)
24             abort_on_error("Object doesn't have a name!");
25

RETURN VALUE

27       Returns  a  pointer  to the text string for the object, or a pointer to
28       the variable empty_string if the property isn't present.
29
30

SEE ALSO

32       DAT_ID(3), empty_string(3)
33
34
35
36Allegro                          version 4.4.3        get_datafile_property(3)
Impressum