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

(/usr/bin/git 2024-05-27, commit: e130c0d)

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

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

Functions

void * __wrap_memset (void *str, int c, size_t n)
 

Detailed Description

Implementation of a mock function for memset().

Function Documentation

◆ __wrap_memset()

void * __wrap_memset ( void *  str,
int  c,
size_t  n 
)

Mock function for memset().

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