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
/
test4.c
blob
90a57f6c46be69e580be0d1db34001b82a51333a
1
#include <stdio.h>
2
#include
"utvector.h"
3
4
int
main
() {
5
int
i
,*
p
=
NULL
;
6
UT_vector v
,*
k
;
7
utvector_init
(&
v
,
utmm_int
);
8
for
(
i
=
0
;
i
<
10
;
i
++)
utvector_push
(&
v
, &
i
);
9
10
k
=
utvector_clone
(&
v
);
11
while
( (
p
=(
int
*)
utvector_next
(
k
,
p
)))
printf
(
"%d
\n
"
,*
p
);
12
13
utvector_fini
(&
v
);
14
utvector_free
(
k
);
15
return
0
;
16
}