cpi_get_last_error

Returns the error code for the previous error that occurred in the library.

Prototype

#include txcpi.h

CPI_ERR_TYPE cpi_get_last_error();

Return values

None.

Details

When a CPI library function returns the error indicator CPI_ERROR, use cpi_get_last_error to determine the error code. Then use cpi_get_error_str to convert this errnum into an ASCII string describing the error.

See also

cpi_get_error_str