Table Of Contents

C Node Function Reference

Last Modified: September 30, 2016

The following table lists functions, macros, and variables specific to the C Node.

Function Description
cnode_error_check Macro that checks the input expression for error. If the result is negative, then this macro sets it to the C node error and jumps to the 'Error' label. You must define an 'Error' label to use this macro.
cnode_error_code An integer variable representing the error code in the error in and error out cluster terminals. This variable is automatically set by cnode_error_check and cnode_null_check.
cnode_error_set Macro that sets the C node error code and status. Pass the integer error code in the first parameter and the Boolean error status (1 or 0) in the second parameter. A non-zero status indicates that an error has occurred, and zero indicates otherwise.
cnode_error_source A string variable representing the source of error in the error in and error out cluster terminals. This variable is automatically set by cnode_error_check and cnode_null_check.
cnode_error_status A Boolean variable representing the status of error in the error in and error out cluster terminals. An error is set if this variable is TRUE and not set if this variable is FALSE. This variable is automatically set by cnode_error_check and cnode_null_check.
cnode_get_array_length Returns the number of elements in the 'array' C node array terminal.
cnode_null_check Macro that checks the if the input expression is NULL (zero). If the expression is NULL, then this macro sets the C node error to indicate that memory allocation failed and jumps to the 'Error' label. You must define an 'Error' label to use this macro.
cnode_printf Prints to the Output window.
cnode_size_array Resizes the 'array' C node array terminal to hold 'length' number of elements. Returns non-zero on success and zero on failure.
cnode_size_string Resizes the 'string' C node string terminal to hold 'size' bytes including the terminating NUL byte. Returns non-zero on success and zero on failure.

Recently Viewed Topics