diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-28 13:51:42 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-28 13:51:42 -0300 |
commit | d55488c605c425815c641f22aa46c398da20a950 (patch) | |
tree | 33a46335f579b0b25d62bf9b73698f80207f1a1b /linked_list.h | |
parent | c2756dd4cd48ca0beddae4d6a83dd5aaac5674ed (diff) |
linked_list: Add `linked_list_to_array()`
This function takes the given linked list, and creates a type generic
pointer array from it.
Diffstat (limited to 'linked_list.h')
-rw-r--r-- | linked_list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linked_list.h b/linked_list.h index d18b859..a89578d 100644 --- a/linked_list.h +++ b/linked_list.h @@ -14,6 +14,7 @@ extern linked_list *get_tail(linked_list *node); extern linked_list *add_node(linked_list **tail, void *data); extern void remove_node(linked_list *node); extern void cleanup_linked_list(linked_list *node); +extern void **linked_list_to_array(linked_list *node); extern int linked_list_size(linked_list *tail); #endif |