Synopsis

PDX_MSGT mpm_GetMessage(long option, PDX_MSGT message, char **text, ...)

Purpose

Get the message text using the message processor.

Description

This function will return the text of a specified message using vsprintf to format the specified values into the message text. Since the memory required for the text will be allocated, the application must free it when done.

Input

option

MPM_BRIEF

Use the brief version of the message

MPM_NOFORMAT

Do not format the message, just return the text

message

Message id generated by the message table compiler

text

NULL or string to be appended to @a ... Arguments to be formatted in text

Output

text

Formatted message text

Return

MPM_NOERR or error