# Synopsis

(macro) PDX_MSGT mda_Calloc(long option, void *ent, size_t nelem, size_t size, void *ptr)

# Purpose

Database memory allocator.

# Description

This macro is a compatibility wrapper for mda_Malloc. mda_Malloc always initializes the allocated memory to 0 so there is no functional difference. The size argument for mda_Malloc is computed as nelem * size. The other arguments are passed unchanged. See mda_Malloc for additional information and argument descriptions.

# Input

## option

Options (not used)

## ent

The entity which owns the allocated memory or NULL

## nelem

Number of elements of size bytes to be allocated

## size

The number of bytes in each element

## ptr

Address to store the allocated memory pointer at

# Output

## ptr

The allocated memory

# Return

MDA error code