repo.or.cz
/
GalaxyCodeBases.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modified: diffout.py
[GalaxyCodeBases.git]
/
c_cpp
/
lib
/
uthash
/
libut
/
tests
/
test5.c
blob
8ff87d84240d74922eec08758c92130500d5a1c5
1
#include <stdio.h>
2
#include
"libut.h"
3
4
int
main
() {
5
int
i
;
UT_string
*
p
;
6
UT_vector v
;
utvector_init
(&
v
,
utstring_mm
);
7
UT_string s
;
utstring_init
(&
s
);
8
for
(
i
=
0
;
i
<
10
;
i
++) {
9
utstring_printf
(&
s
,
"."
);
10
utvector_push
(&
v
, &
s
);
11
}
12
p
=
NULL
;
13
while
( (
p
=(
UT_string
*)
utvector_next
(&
v
,
p
)))
printf
(
"%s
\n
"
,
utstring_body
(
p
));
14
15
utvector_fini
(&
v
);
16
utstring_done
(&
s
);
17
return
0
;
18
}