---
name: "load_datafile_object_indexed"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/load_datafile_object_indexed/3alleg4"
---

# load\_datafile\_object\_indexed(3alleg4)

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

## NAME

load\_datafile\_object\_indexed - Loads a single object from a datafile index. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**DATAFILE \*load\_datafile\_object\_indexed(const DATAFILE\_INDEX \*index, int item)**

## DESCRIPTION

This loads a single object, using the index created previously with create\_datafile\_index. See create\_datafile\_index for an example.

## RETURN VALUE

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

## SEE ALSO

**create\_datafile\_index**(3alleg4), **load\_datafile\_object**(3alleg4), **unload\_datafile\_object**(3alleg4)
