Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
mem_safety
/
stdlib
/
stdlib-008.c
blob: e5ea5b3e62793d66325b491587cd2bdbac6e7c4e [
file
] [
log
] [
blame
]
/* memmove() with the size of the destination smaller than given */
#include
<string.h>
int
main
()
{
char
buf1
[
50
];
strcpy
(
buf1
,
"This is between 20 and 30"
);
memmove
(&
buf1
[
30
],
buf1
,
30
);
return
0
;
}