diff options
| author | sanine <sanine.not@pm.me> | 2025-10-24 13:32:54 -0500 | 
|---|---|---|
| committer | sanine <sanine.not@pm.me> | 2025-10-24 13:32:54 -0500 | 
| commit | 24fbfb8c41c62b11506668a22074379115f57600 (patch) | |
| tree | 1994109fe42df1e0589a9e96051a235b611ba487 /lichen.h | |
| parent | 30efa292790dfdc9eedefa97a9f82e1cac2aeaa0 (diff) | |
implement basic linked list append
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 | 
