TE_setvar

Example: TE_setvarSystem Variable Functions

Sets the value of an RTE system variable.

int TE_setvar( int var, int val );

Inputs

var The name of the RTE System Variables to be set. The variable may be one from the list below.
val The value to be set.

The TE_setvar function sets an RTE System Variables.

One use of TE_setvar is to get a script to continue on error. Use
TE_setvar(TE_IGNORE_ERRORS, 1)
to continue script run on error and
TE_setvar(TE_IGNORE_ERRORS, 0)
to restore the default behavior of failing the script on error.

Return Values

This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.

Parameterization

You cannot use standard parameterization for any arguments in this function.