|
NAMEset_constraint_handler_s ,
abort_handler_s ,
ignore_handler_s —
runtime-constraint violation handling
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#define __STDC_WANT_LIB_EXT1__ 1
constraint_handler_t
Handler Prototypetypedef void(*constraint_handler_t) (const char *
restrict msg, void * restrict ptr,
errno_t error);
Predefined Handlersvoidabort_handler_s (const char * restrict
msg, void * restrict ptr, errno_t
error);
void
DESCRIPTIONTheset_constraint_handler_s () function sets the
runtime-constraint violation handler to be handler.
The runtime-constraint handler is the callback function invoked when a library function detects a runtime-constraint violation. The arguments are as follows:
Only the most recent handler registered with
The implementation has a default constraint handler that is used
if no calls to the The The The RETURN VALUESTheset_constraint_handler_s () function returns a
pointer to the previously registered handler, or NULL
if none was previously registered.
The The STANDARDSTheset_constraint_handler_s () function conforms to
ISO/IEC 9899:2011 (“ISO C11”)
K.3.6.1.1.
AUTHORSThis manual page was written by Yuri Pankov <yuripv@yuripv.net>.
Visit the GSP FreeBSD Man Page Interface. |