safec  3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
safe_str_constraint.h File Reference
#include "safe_str_lib.h"
+ Include dependency graph for safe_str_constraint.h:

Functions

EXTERN void invoke_safe_str_constraint_handler (const char *msg, void *ptr, errno_t error)
 Invokes the currently set constraint handler or the default. More...
 
static void handle_error (char *orig_dest, rsize_t orig_dmax, const char *err_msg, errno_t err_code)
 
static void handle_werror (wchar_t *orig_dest, rsize_t orig_dmax, const char *err_msg, errno_t err_code)
 

Function Documentation

◆ invoke_safe_str_constraint_handler()

EXTERN void invoke_safe_str_constraint_handler ( const char *  msg,
void *  ptr,
errno_t  error 
)

Invokes the currently set constraint handler or the default.

Parameters
*msgPointer to the message describing the error
*ptrPointer to aassociated data. Can be NULL.
errorThe error code encountered.

◆ handle_error()

static void handle_error ( char *  orig_dest,
rsize_t  orig_dmax,
const char *  err_msg,
errno_t  err_code 
)
inlinestatic

◆ handle_werror()

static void handle_werror ( wchar_t *  orig_dest,
rsize_t  orig_dmax,
const char *  err_msg,
errno_t  err_code 
)
inlinestatic