modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / test8.c
blob81e9c87fc8ecf9b0bdfe81d5a43d29ead526c256
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<16; i++) utvector_push(&v, &i);
9 p = utvector_extend(&v);
10 *p = 1000;
11 p=NULL;
12 while ( (p=(int*)utvector_next(&v,p))) printf("%d\n",*p);
13 utvector_fini(&v);
14 return 0;