summaryrefslogtreecommitdiff
path: root/lichen.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2025-10-24 15:14:07 -0500
committersanine <sanine.not@pm.me>2025-10-24 15:14:07 -0500
commit9d35ddb703d7ba22bdd6cdbaaf3b5c992ec79025 (patch)
treeedc09566743454fad659cd5d47ebfda2e4282907 /lichen.h
parent4167860e015a779f83a17bc8754c7070bdfba336 (diff)
add list copy
Diffstat (limited to 'lichen.h')
-rw-r--r--lichen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lichen.h b/lichen.h
index 4bcd608..5f13e85 100644
--- a/lichen.h
+++ b/lichen.h
@@ -49,9 +49,9 @@ typedef struct li_ll_t {
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);
-void li_ll_prepend(struct li_ll_t *list, void *data);
-struct li_ll_t * li_copy_list(struct li_ll_t *list);
+int li_ll_append(struct li_ll_t *list, void *data);
+int li_ll_prepend(struct li_ll_t *list, void *data);
+int li_copy_list(struct li_ll_t **dst, struct li_ll_t *src, void *(*copy_data)(void*));