Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
bcmp-002.c
blob: a8562510c23e17f582b45676c61191b09cb00bc1 [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
// This is an example of the correct usage of bcmp().
#include
<assert.h>
#include
<strings.h>
int
main
()
{
char
s
[
10
]
=
"string"
;
char
t
[
10
]
=
"string"
;
assert
(
bcmp
(
s
,
t
,
7
)
==
0
);
return
0
;
}