Imaging Control 4 C Library 1.2.0
|
This section contains information about how errors are reported by the IC Imaging Control 4 C Library.
Most library functions return a bool
value indicating success or an error status. Functions returning other data types (e.g. const char*
) indicate errors by specific values, e.g. NULL
. Please refer to the documentation for each function to check the exact way the function reports errors.
If an error occurs, the function stores error information in a thread-local storage. A consecutive successful function call clears the stored error information.
To query the error information after a failed function call, use ic4_get_last_error. The following code snippet shows a function querying the error printing the error message: