cniDeleteMessage

Deletes the specified message object. For every call to the cniCreateMessage function, there should be a matching call to cniDeleteMessage to return allocated resources when the processing on the output message has been completed.

Syntax

void cniDeleteMessage(
  int*         returnCode,
  CciMessage*  message);

Parameters

returnCode
The return code from the function (output).
message
The address of the message object to be deleted (input).

Return values

None. If an error occurs, the returnCode parameter indicates the reason for the error.

Example

   cniDeleteMessage(0, outMsg);

Related concepts
User-defined Input nodes
User-defined message processing nodes
User-defined output nodes

Related tasks
Creating an input node in C
Creating a message processing node in C

Related reference
C language node utility functions
cniCreateMessage
cniGetEnvironmentMessage
cniGetMessageContext
cniFinalize
cniPropagate