Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
strxfrm-001.c
blob: a7bf05ca48c43e10d3ad868db1c46f78fbccac6d [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
#include
<locale.h>
// strxfrm() with too short a destination.
int
main
()
{
char
dst
[
9
];
char
*
source
=
"This is a string"
;
setlocale
(
LC_ALL
,
"C"
);
size_t
sz
;
sz
=
strxfrm
(
dst
,
source
,
10
);
return
0
;
}