Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
strrchr-001.c
blob: 254ee433adae3fc7997d6bb1171fbd8f99016006 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// strrchr() with an unterminated string searching for a character not
// that is not found in the string.
#include
<string.h>
int
main
()
{
char
a
[
1000
];
memset
(
a
,
'a'
,
1000
);
strrchr
(
a
,
'X'
);
return
0
;
}