Crinit -- Configurable Rootfs Init
utest-file-series-suffix-filter.h File Reference

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

#include <stdbool.h>
Include dependency graph for utest-file-series-suffix-filter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool crinitSuffixFilter (const char *name, const char *suffix)
 
void crinitSuffixFilterTestSuccess (void **state)
 

Function Documentation

◆ crinitSuffixFilter()

bool crinitSuffixFilter ( const char *  name,
const char *  suffix 
)

Filters strings by suffix.

Parameters
nameString to be fed to the filter.
suffixSuffix to check for.
Returns
true if name ends with suffix, false if not.

◆ crinitSuffixFilterTestSuccess()

void crinitSuffixFilterTestSuccess ( void **  state)

Unit test for crinitSuffixFilter(), successful execution.