|
DYNAMICS C API
C-compatible interface to the DYNAMICS library
|
Functions | |
| void | c_set_error_handler (c_error_handler fcn, void *user_data) |
| Register a handler invoked whenever the C interface records an error on the calling thread. | |
| int | c_get_last_error (void) |
| Get the most recent error recorded on the calling thread. | |
| int | c_get_last_error_message (int n, char *buffer) |
| Copy the message for the most recent error on the calling thread. | |
| void | c_clear_error (void) |
| Clear the error recorded on the calling thread. | |
| void c_set_error_handler | ( | c_error_handler | fcn, |
| void * | user_data | ||
| ) |
Register a handler invoked whenever the C interface records an error on the calling thread.
| fcn | Handler, or NULL to remove the current handler. |
| user_data | Opaque pointer forwarded to fcn. |
| int c_get_last_error | ( | void | ) |
Get the most recent error recorded on the calling thread.
The value is retained until c_clear_error is called; successful calls do not reset it.
| int c_get_last_error_message | ( | int | n, |
| char * | buffer | ||
| ) |
Copy the message for the most recent error on the calling thread.
| n | Capacity of buffer, including the terminating null character. |
| buffer | Output null-terminated message; truncated to fit. |
| void c_clear_error | ( | void | ) |
Clear the error recorded on the calling thread.