modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / test4.c
blob90a57f6c46be69e580be0d1db34001b82a51333a
1 #include <stdio.h>
2 #include "utvector.h"
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);
10 k = utvector_clone(&v);
11 while ( (p=(int*)utvector_next(k,p))) printf("%d\n",*p);
13 utvector_fini(&v);
14 utvector_free(k);
15 return 0;