lrt_abort_on_error
| Error Processing Functions |
Aborts the current transaction if the previous Tuxedo function resulted in an error.
void lrt_abort_on_error( );
The lrt_abort_on_error function aborts the current transaction if the previous Tuxedo function resulted in an error. This signifies an abnormal end of a transaction. All changes made to resources during the transaction are undone.
Return Values
This function has no return value.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following example, the lrt_abort_on_error function aborts the current transaction if the lrt_tpinitialize resulted in an error.
/* abort if lrt_tpinitialize resulted in error*/
tpresult_int = lrt_tpinitialize("usrname=smith", "cltname=bankapp", "passwd=mypasswd", "flags=TPU_DIP", LRT_END_OF_PARMS);
lrt_abort_on_error();

