|
safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"#include "safe_str_constraint.h"#include "safe_str_lib.h"
Include dependency graph for safe_str_constraint.c:Go to the source code of this file.
Functions | |
| constraint_handler_t | set_str_constraint_handler_s (constraint_handler_t handler) |
| The set_str_constraint_handler_s function sets the runtime-constraint handler to be handler. More... | |
| void | invoke_safe_str_constraint_handler (const char *msg, void *ptr, errno_t error) |
| Invokes the currently set constraint handler or the default. More... | |
Variables | |
| static constraint_handler_t | str_handler = NULL |
| constraint_handler_t set_str_constraint_handler_s | ( | constraint_handler_t | handler | ) |
The set_str_constraint_handler_s function sets the runtime-constraint handler to be handler.
The runtime-constraint handler is the function to be called when a library function detects a runtime-constraint violation. Only the most recent handler registered with set_str_constraint_handler_s is called when a runtime-constraint violation occurs. When the handler is called, it is passed the following arguments in the following order:
Definition at line 76 of file safe_str_constraint.c.
| void invoke_safe_str_constraint_handler | ( | const char * | msg, |
| void * | ptr, | ||
| errno_t | error | ||
| ) |
Invokes the currently set constraint handler or the default.
| *msg | Pointer to the message describing the error |
| *ptr | Pointer to aassociated data. Can be NULL. |
| error | The error code encountered. |
Definition at line 99 of file safe_str_constraint.c.
|
static |
Definition at line 38 of file safe_str_constraint.c.