Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
strspn-002.c
blob: a2a5ef737a6aab8d8e101a144a1d2abae6cae1e0 [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
#include
<assert.h>
#include
<string.h>
// Example of the correct usage of strspn().
int
main
()
{
char
*
str
=
"A string"
;
size_t
result
;
result
=
strspn
(
str
,
str
);
assert
(
result
=
8
);
return
0
;
}