Crinit -- Configurable Rootfs Init
mock-malloc.c File Reference

(2023-10-16, commit: 49337e0)

Implementation of a mock function for malloc(). More...

#include "mock-malloc.h"
#include "unit_test.h"
Include dependency graph for mock-malloc.c:

Functions

void * __wrap_malloc (size_t size)
 

Detailed Description

Implementation of a mock function for malloc().

Function Documentation

◆ __wrap_malloc()

void* __wrap_malloc ( size_t  size)

Mock function for malloc().

Checks that the right parameters are given and return a preset pointer.