.\" Generated by the Allegro makedoc utility .TH get_datafile_property 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME get_datafile_property \- Returns the property string for the object. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B const char *get_datafile_property(const DATAFILE *dat, int type); .SH DESCRIPTION Finds the property type of a DATAFILE object. The type parameter must be a value created with the DAT_ID() macro. Example: .nf const char *name; ... name = get_datafile_property(game_data, DAT_ID('N','A','M','E')); if (name == empty_string) abort_on_error("Object doesn't have a name!"); .fi .SH "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. .SH SEE ALSO .BR DAT_ID (3alleg4), .BR empty_string (3alleg4)