diff options
Diffstat (limited to 'lichen.h')
| -rw-r--r-- | lichen.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| @@ -41,9 +41,18 @@ typedef struct li_ll_t {    int tag;    size_t count;    li_llnode_t *head; +  li_llnode_t *end;  } li_ll_t; +// allocate a linked list +struct li_ll_t * li_alloc_ll(); +// free a linked list +void li_free_ll(struct li_ll_t *list, void (*free_data)(void*)); +void li_ll_append(struct li_ll_t *list, void *data); +struct li_ll_t * li_copy_list(struct li_ll_t *list); + +  #endif | 
