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