cniElementType

Gets the value of the type attribute for the specified syntax element. The syntax element type will have been set previously using cniSetElementType or cpiSetElementType.

Syntax

CciElementType cniElementType(
  int*         returnCode,
  CciElement*  targetElement);

Parameters

returnCode
targetElement
The address of the target syntax element object (input).

Return values

The value of the target element type is returned. If an error occurs, CCI_FAILURE is returned, and the returnCode parameter indicates the reason for the error.