aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memmove_same.c
blob: 0e032def9ec98866804c49ed83a0de3b037f287c (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <mem.h>

static char const src[] = "hello";
static char dest[sizeof(src)] = { 0 };

int main(void) {
  calt_memmove(dest, src, sizeof(src));
  return calt_memcmp(src, dest, sizeof(src)) == 0 ? 0 : 1;
}