PatchworkOS
Loading...
Searching...
No Matches
set_constraint_handler_s.c
Go to the documentation of this file.
2
3#include <stdlib.h>
4
6
7constraint_handler_t set_constraint_handler_s(constraint_handler_t handler)
8{
9 constraint_handler_t previous = _constraintHandler;
10
11 if (handler == NULL)
12 {
14 }
15 else
16 {
17 _constraintHandler = handler;
18 }
19
20 return previous;
21}
void abort_handler_s(const char *_RESTRICT msg, void *_RESTRICT ptr, errno_t err)
constraint_handler_t _constraintHandler
#define NULL
Pointer error value.
Definition NULL.h:23
constraint_handler_t set_constraint_handler_s(constraint_handler_t handler)