ucx/list.h

changeset 12
fe50a85e69e7
parent 9
013c5c4b7e44
child 18
69636f81db31
equal deleted inserted replaced
11:4f6082f99bd7 12:fe50a85e69e7
16 struct UcxList { 16 struct UcxList {
17 void *data; 17 void *data;
18 UcxList *next; 18 UcxList *next;
19 }; 19 };
20 20
21 void ucx_list_free(UcxList *l);
21 UcxList *ucx_list_append(UcxList *l, void *data); 22 UcxList *ucx_list_append(UcxList *l, void *data);
22 UcxList *ucx_list_prepend(UcxList *l, void *data); 23 UcxList *ucx_list_prepend(UcxList *l, void *data);
23 UcxList *ucx_list_concat(UcxList *l1, UcxList *l2); 24 UcxList *ucx_list_concat(UcxList *l1, UcxList *l2);
24 UcxList *ucx_list_last(UcxList *l); 25 UcxList *ucx_list_last(UcxList *l);
25 UcxList *ucx_list_get(UcxList *l, int index); 26 UcxList *ucx_list_get(UcxList *l, int index);

mercurial