diff options
Diffstat (limited to 'test/mem/memcmp_prefix.c')
-rw-r--r-- | test/mem/memcmp_prefix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mem/memcmp_prefix.c b/test/mem/memcmp_prefix.c new file mode 100644 index 0000000..175f85d --- /dev/null +++ b/test/mem/memcmp_prefix.c @@ -0,0 +1,6 @@ +#include <mem.h> + +char const buf1[] = "hello"; +char const buf2[] = "hello world"; + +int main(void) { return 0 == calt_memcmp(buf1, buf2, sizeof(buf1) - 1) ? 0 : 1; } |