Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
safecode
/
test
/
cstdlib
/
strcspn-001.c
blob: 36529e10f19725a106a4720f3f7d4fff3532eccf [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// strcspn() reading past end of the input string.
#include
<string.h>
int
main
()
{
char
input
[
100
];
memset
(
input
,
'a'
,
100
);
size_t
result
;
result
=
strspn
(
input
,
"ghijk"
);
return
0
;
}