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

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

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

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

Functions

DIR * __wrap_opendir (const char *name)
 

Detailed Description

Implementation of a mock function for opendir().

Function Documentation

◆ __wrap_opendir()

DIR* __wrap_opendir ( const char *  name)

Mock function for opendir().

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