lrt_tpstrerror
| Error Processing Functions |
Retrieves an error message string for System/T error.
char *lrt_tpstrerror( int err );
| err | Error message string. |
The lrt_tpstrerror function retrieves an error message string for System/T error.
Return Values
If the function succeeds, it returns a pointer to the string that contains the error message text. If err is an invalid error code, then lrt_tpstrerror returns NULL.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following example, lrt_tpstrerrorretrieves the error message string for the specified error code. The string is then sent to the output.
int rc;
lrt_tpalloc("nontype", "", 1000);
rc = lrt_gettperrno();
lr_output_message("error is %s", lrt_tpstrerror(rc));

