|
Crinit -- Configurable Rootfs Init
|
Implementation of a mock function for malloc(). More...

Functions | |
| void * | __wrap_malloc (size_t size) |
Variables | |
| bool | crinitMockMallocEnabled = false |
Implementation of a mock function for malloc().
| void * __wrap_malloc | ( | size_t | size | ) |
Mock function for malloc().
If crinitMockMallocEnabled is true then it checks that the right parameters are given and return a preset pointer. If crinitMockMallocEnabled is false then the call is forwarded to the genuine free method.
| bool crinitMockMallocEnabled = false |