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