modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / test2.c
blobed5893e3006030f80dd6cdc797dbf94d27711086
1 #include <stdio.h>
2 #include "utvector.h"
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;