load_datafile_object(3) - Linux man page
Name
load_datafile_object - Loads a specific object from a datafile. Allegro game programming library.Synopsis
#include <allegro.h>DATAFILE *load_datafile_object(const char *filename, const char *objectname);
Description
Loads a specific object from a datafile. This won't work if you strip the object names from the file, and it will be very slow if you save the file with global compression. Example:/* Load only the music from the datafile. */
music_object = load_datafile_object("datafile.dat",
"MUSIC");
/* Play it and wait a moment for it. */
play_midi(music_object->dat);
...
/* Destroy unneeded music. */
unload_datafile_object(music_object);