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