# Synopsis

PDX_MSGT ddf_GetFieldDefault(DDF_FLD *fld, void *def_val)

# Purpose

Get default value for a field.

# Description

Gets the default value as specified in the DDF for the DDF_FLD fld. If no value was specified then def_val will be set to 0 if an integer type, 0.0 if a floating point type, or MDA_NULL_PTR if a pointer type. Field types other than those with corresponding C data types will be ignored.

# Input

## fld

Field entry of the field to be defaulted

# Output

## def_val

Default value for the field

# Return

DDF error code