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
drd/tests/swapcontext: Improve the portability of this test further
[valgrind.git]
/
none
/
tests
/
readline1.c
blob
63c4b89409e91e5ab1b148e1ba61fe16a3fe8822
1
2
#include <stdio.h>
3
#include <unistd.h>
4
#include <string.h>
5
6
int
rl_insert
(
int
,
int
);
7
8
int
main
(
void
)
9
{
10
rl_insert
(
1
,
'z'
);
11
12
return
0
;
13
}
14
15
int
zzzstrlen
(
char
*
str
)
16
{
17
if
(
str
[
1
] ==
0
)
return
2
;
else return
10
;
18
}
19
20
int
rl_insert
(
int
count
,
int
c
)
21
{
22
char
str
[
2
];
23
str
[
1
] =
0
;
24
str
[
0
] =
c
;
25
printf
(
"HERE strlen is %d
\n
"
,
zzzstrlen
(
str
));
26
return
0
;
27
}