Crinit -- Configurable Rootfs Init
mock-strdup.h File Reference

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

Header declaring a mock function for strdup(). More...

#include <stddef.h>
Include dependency graph for mock-strdup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * __wrap_strdup (const char *s)
 

Detailed Description

Header declaring 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.