Example: TE_perrorError Code Functions

Translates an error code into the corresponding string and prints it to the output window.

void TE_perror( char *prefix );


prefix The formatted error string.

TE_perror translates the current value of TE_errno to the corresponding error string, formats the string, and sends it to the log or output window.

The TE_perror function is equivalent to the following:

lr_error_message( "%s: %s\n", prefix, TE_sperror() )

Return Values

This function does not return a value.


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