Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
strncat-009.c
blob: 53cc860edd9c8f9222f558a5f3e1d6cfc988daf7 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// strncat() when the source array contains the whole destination string.
#include
<string.h>
int
main
()
{
char
string
[
100
]
=
"This is\0 a string."
;
strncat
(&
string
[
4
],
&
string
[
1
],
20
);
return
0
;
}