# Synopsis

(macro) MDA_INDEX mda_GetPtrIndex(MDA_PTR db_ptr)

# Purpose

Extract the index from a database pointer.

# Description

The index is extracted from the database pointer and returned. If the database pointer is null (i.e. MDA_NULL_PTR), the index MDA_NULL_IND will be returned.

# Input

## db_ptr

The database pointer to extract the index from

# Return

The index of the pointer or MDA_NULL_IND