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

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

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

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

Functions

char * __wrap_strdup (const char *s)
 

Detailed Description

Implementation of a mock function for strdup().

Function Documentation

◆ __wrap_strdup()

char * __wrap_strdup ( const char *  s)

Mock function for strdup().

Checks that the right parameter is given and returns a preset pointer.