---
name: "load_datafile_object_indexed"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/load_datafile_object_indexed"
---

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

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**(3alleg)](/create_datafile_index/3alleg.md), [**load\_datafile\_object**(3alleg)](/load_datafile_object/3alleg.md), [**unload\_datafile\_object**(3alleg)](/unload_datafile_object/3alleg.md)
