DOKK / manpages / debian 10 / allegro4-doc / load_datafile_object_indexed.3alleg4.en
load_datafile_object_indexed(3alleg4) Allegro manual load_datafile_object_indexed(3alleg4)

load_datafile_object_indexed - Loads a single object from a datafile index. Allegro game programming library.

#include <allegro.h>

DATAFILE *load_datafile_object_indexed(const DATAFILE_INDEX *index, int item)

This loads a single object, using the index created previously with create_datafile_index. See create_datafile_index for an example.

Returns a pointer to a single DATAFILE element whose "dat" member points to the object, or NULL if the object could not be loaded.

create_datafile_index(3alleg4), load_datafile_object(3alleg4), unload_datafile_object(3alleg4)

version 4.4.2 Allegro