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