modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / test5.c
blob8ff87d84240d74922eec08758c92130500d5a1c5
1 #include <stdio.h>
2 #include "libut.h"
4 int main() {
5 int i; UT_string *p;
6 UT_vector v; utvector_init(&v, utstring_mm);
7 UT_string s; utstring_init(&s);
8 for(i=0; i<10; i++) {
9 utstring_printf(&s, ".");
10 utvector_push(&v, &s);
12 p=NULL;
13 while ( (p=(UT_string*)utvector_next(&v,p))) printf("%s\n",utstring_body(p));
15 utvector_fini(&v);
16 utstring_done(&s);
17 return 0;