Commit 12ee303d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

compat: test: Fix strnstr tests

parent 71001a36
......@@ -23,14 +23,13 @@
#include "config.h"
#include <stdbool.h>
#undef NDEBUG
#include <assert.h>
#include <string.h>
const char* haystack = "Lorem ipsum dolor sit amet";
void test( const char* haystack, const char* needle, size_t len, bool res );
void test( const char* haystack, const char* needle, size_t len, bool res )
static void test( const char* haystack, const char* needle, size_t len, bool res )
{
if ( len == 0 )
len = strlen( haystack );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment