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

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

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

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

Functions

size_t __wrap_strlen (const char *s)
 

Detailed Description

Implementation of a mock function for strlen().

Function Documentation

◆ __wrap_strlen()

size_t __wrap_strlen ( const char *  s)

Mock function for strlen().

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