]> git.lizzy.rs Git - dragonstd.git/blobdiff - list.h
Add list_ppd
[dragonstd.git] / list.h
diff --git a/list.h b/list.h
index eb8f97b7ec8b109aa576d85f3b4b5eca4032632c..d57f3781866135c6955301657bc8454e999e9fd8 100644 (file)
--- a/list.h
+++ b/list.h
@@ -61,6 +61,11 @@ void list_apd(List *list, void *dat);
        Append an element at the end of the list.
 */
 
+void list_ppd(List *list, void *dat);
+/*
+       Prepend an element at the start of the list.
+*/
+
 ListNode **list_nfd(List *list, void *key, Comparator cmp);
 /*
        Find the location of the first node matching key.