logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       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,
                                       DAT_ID('N','A','M','E'));
          if (name == empty_string)
             abort_on_error("Object doesn't have a name!");

Name

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

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(3alleg4), empty_string(3alleg4)

Allegro                                           version 4.4.3                   get_datafile_property(3alleg4)

Synopsis

#include<allegro.h>constchar*get_datafile_property(constDATAFILE*dat,inttype);

See Also