repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 497723 - forgot to restore callgrind output cleanup
[valgrind.git]
/
none
/
tests
/
coolo_strlen.c
blob
16e98702513134ccf5d2efc1653db8f6db105fcc
1
2
#include <string.h>
3
4
int
main
() {
5
char
buffer
[
200
] =
"HALLO"
;
6
char
*
b2
=
strdup
(
strcat
(
buffer
,
"THis is a very long strings"
));
7
int
len
=
strlen
(
b2
);
8
if
(
len
<
12
)
9
return
0
;
10
else
11
return
1
;
12
}
13