cniAddasLastChild

Adds an unattached syntax element as the last child of a specified syntax element. The currently unattached syntax element, and any child elements it possesses, is connected to the syntax element tree as the last child of the specified target element. The new element need not be attached to a tree.

Syntax

void cniAddAsLastChild(
  int*         returnCode,
  CciElement*  targetElement,
  CciElement*  newElement);

Parameters

returnCode
The return code from the function (output).
targetElement
The address of the target syntax element object (input).
newElement
The address of the new syntax element object that is to be added to the tree structure (input).

Return values

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

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

Related tasks
Creating a message processing node in C

Related reference
C language node utility functions
cniAddAfter
cniAddasFirstChild
cniAddBefore