Your company here ā€” click to reach over 10,000 unique daily visitors

get_datafile_property - Man Page

Returns the property string for the object. Allegro game programming library.


#include <allegro.h>

const char *get_datafile_property(const DATAFILE *dat, int type);


Finds the property type of a DATAFILE object. The type parameter must be a value created with the DAT_ID() macro. Example:

   const char *name;
   name = get_datafile_property(game_data,
   if (name == empty_string)
      abort_on_error("Object doesn't have a name!");

Return Value

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

See Also

DAT_ID(3), empty_string(3)

Referenced By


version 4.4.3 Allegro manual