Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
mock-realloc.c File Reference

(/usr/bin/git 2023-11-27, commit: bad6102)

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

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

Functions

void * __wrap_realloc (void *ptr, size_t size)
 

Detailed Description

Implementation of a mock function for malloc().

Function Documentation

◆ __wrap_realloc()

void * __wrap_realloc ( void *  ptr,
size_t  size 
)

Mock function for realloc().

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