Crinit -- Configurable Rootfs Init
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mock-strcmp.c File Reference

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

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

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

Functions

int __wrap_strcmp (const char *s1, const char *s2)
 

Detailed Description

Implementation of a mock function for strcmp().

Function Documentation

◆ __wrap_strcmp()

int __wrap_strcmp ( const char *  s1,
const char *  s2 
)

Mock function for strcmp().

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