7 utvector_init(&v
, utmm_int
);
8 for(i
=0; i
<16; i
++) utvector_push(&v
, &i
);
10 p
=NULL
; while ( (p
=(int*)utvector_next(&v
,p
))) printf("%d\n",*p
);
13 p
= (int*)utvector_head(&v
);
14 printf("head: (%s) %d\n", p
?"non-null":"null", p
?*p
:0);
16 p
= (int*)utvector_tail(&v
);
17 printf("tail: (%s) %d\n", p
?"non-null":"null", p
?*p
:0);
19 printf("len: %d\n", utvector_len(&v
));
22 printf("len: %d\n", utvector_len(&v
));
24 p
= (int*)utvector_head(&v
);
25 printf("head: (%s) %d\n", p
?"non-null":"null", p
?*p
:0);
29 printf("len: %d\n", utvector_len(&v
));