lrt_getFerror32

Error Processing Functions

Gets the error status code for the last FML operation that failed.

int lrt_getFerror32( void );

The lrt_getFerror32 function retrieves the error code for the last failed FML operation. This function is used in multi-tasking environments to provide an independent error status for each task, rather than relying on the global error variable (Ferrno).

Return Values

If the function succeeds, it returns the error code for the last FML routine performed by this task.

Parameterization

Parameterization is not applicable to this function.

Example

In the following example, the lrt_getFerror function retrieved the error code generated during the session. The example for lrt_getFerror32 is identical except for the function name.

Copy code
int rc;
lr_output_message("id is %s", lrt_Fname(8302));
lr_output_message("name is %d", lrt_Fldid("ACCOUNT_ID"));
lr_output_message("name is %d", lrt_Fldid("ACCOUNT_IDS"));
rc = lrt_getFerror();
lr_output_message("error code is %d", rc);
lr_output_message("error message is %s", lrt_Fstrerror(rc));