Share this page

# TE_sperror

Error Code Functions

Translates an error code into the corresponding string. See `TE_errno` is a value of the RTE Error Codes.

    char *TE_sperror( );

## Return Values

This function returns a pointer to a string.

## Parameterization

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

## Example

In the following example, TE_sperror sends an error string to the output.txt file, using the lr_log_message function, if the desired text (the Kermit prompt) does not appear.

    TE_wait_text("C-Kermit>",TIMEOUT);

    if (TE_errno)

        lr_log_message( "Waiting for prompt failed: %s\n", TE_sperror() );

    lr_log_message( "%s: %s\n", prefix, TE_sperror() );

    TE_type("statistics<kReturn>");

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: