summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-21 21:53:50 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-21 21:53:50 +0800
commit53865aad225ffbe5cf3c42736e5a2095092f9fff (patch)
tree697ecbee7fa69ae8c58a0ec2f69cdf84d7cd313f /src/list.h
parent5730d6c04258e192195bfbbbed76d68fd78ed458 (diff)
temporary save point
Just to save some work.
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 6ace213..b878f97 100644
--- a/src/list.h
+++ b/src/list.h
@@ -69,6 +69,9 @@ BOOL list_set_length(List *ls, NUM len);
The number of elements of the array will be stored in *NUM. */
void *list_to_array(List *ls, NUM element_bytes, NUM *num);
+/* Return the array of the list. */
+void **list_array(List *ls);
+
/* Create a list from an array.
The array will be re-used, so it will be destroyed when the list is