aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memcmp_prefix.c
blob: 175f85d0721724f728ca6d9f2c1598a4ad9da802 (plain) (blame)
1
2
3
4
5
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; }