# Synopsis

PDX_MSGT mda_Strdup(long option, void *ent, char *string, void *ptr)

# Purpose

Strdup and duplicate a string.

# Description

Space for the specified string will be allocated and the contents of string copied. The memory is associated with the specified entity and will be swapped to and from memory when that entity is swapped. Note that the ptr argument is the address of the pointer to the copied string. This must be a field within the entity pointed to by ent.

# Input

## option

Options (not used)

## ent

The entity which owns the copied string

## string

The null-terminated string to be copied

## ptr

Address to store the allocated memory pointer at

# Output

## ptr

The allocated memory pointer referencing the copied string

# Return

MDA error code