libroadrunner C API
Functions
Error handling functions

Error handling routines. More...

Functions

C_DECL_SPEC bool rrcCallConv hasError (void)
 Check if there is an error string to retrieve. More...
 
C_DECL_SPEC char *rrcCallConv getLastError (void)
 Retrieve the current error string. More...
 

Detailed Description

Error handling routines.

Function Documentation

◆ getLastError()

C_DECL_SPEC char* rrcCallConv getLastError ( void  )

Retrieve the current error string.

Example:

str = getLastError (void);
C_DECL_SPEC char *rrcCallConv getLastError(void)
Retrieve the current error string.
Returns
Return null if fails, otherwise returns a pointer to the error string

◆ hasError()

C_DECL_SPEC bool rrcCallConv hasError ( void  )

Check if there is an error string to retrieve.

Example: status = hasError (void)

Returns
Returns true if there is an error waiting to be retrieved