aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memcpy_same.c
blob: 3fe9e8446f6c3d48e5558392ade5718b8cdfa551 (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_memcpy(dest, src, sizeof(src));
  return calt_memcmp(src, dest, sizeof(src)) == 0 ? 0 : 1;
}