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 @@ ...@@ -23,14 +23,13 @@
#include "config.h" #include "config.h"
#include <stdbool.h> #include <stdbool.h>
#undef NDEBUG
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
const char* haystack = "Lorem ipsum dolor sit amet"; const char* haystack = "Lorem ipsum dolor sit amet";
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 )
void test( const char* haystack, const char* needle, size_t len, bool res )
{ {
if ( len == 0 ) if ( len == 0 )
len = strlen( haystack ); 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