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

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

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

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

Functions

void __wrap_free (void *ptr)
 

Detailed Description

Implementation of a mock function for free().

Function Documentation

◆ __wrap_free()

void __wrap_free ( void *  ptr)

Mock function for free().

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