abort_handler_s

From cppreference.com
< c‎ | error
Defined in header <stdlib.h>
void abort_handler_s( const char * restrict msg,

                      void * restrict ptr,
                      errno_t error

                    );
(since C11)

Writes an implementation-defined message to stderr which must include the string pointed to by msg and calls abort().

A pointer to this function can be passed to set_constraint_handler_s to establish a runtime constraints violation handler.

As with all bounds-checked functions, abort_handler_s is only guaranteed to be available if __STDC_LIB_EXT1__ is defined by the implementation and if the user defines __STDC_WANT_LIB_EXT1__ to the integer constant 1 before including <stdlib.h>.

Parameters

msg - pointer to the message written to the standard error stream
ptr - pointer to an implementation-defined object or a null pointer. Examples of implementation-defined objects are objects that give the name of the function that detected the violation and the line number when the violation was detected
error - a positive value of type errno_t

Return value

none; this function does not return to its caller

Notes

If set_constraint_handler_s is never called, the default handler is implementation-defined: it may be abort_handler_s, ignore_handler_s, or some other implementation-defined handler.