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

static char buf[] = "hello world";

int main(void) {
	return calt_memcmp(calt_memmove(buf, buf + 6, 5), "world world",
			   sizeof buf - 1) == 0
		   ? 0
		   : 1;
}