Synopsis

PDX_MSGT s041_CheckFields(long option, char *def_string, char *primary_string, void *parent_entity, char **return_string)

Purpose

Check for NULL strings then assign primary or default strings.

Description

This routine is only to be called from s041, s203, and s214 and simply sets the output return_string from the specified primary_string if the primary string is not NULL. Otherwise, the return_string is copied from the specified def_string. The return_string will always be within a new chunk of memory associated with the specified parent_entity.

Input

option

Options (not used).

def_string

Default string value.

primary_string

Primary string value.

parent_entity

Pointer to parent entity of return_string.

Output

return_string

String to be used in entity attribute.

Return

Return codes.