diff -r 8fa43b732980 -r 86ebc3745e62 src/cx/list.h --- a/src/cx/list.h Sun Feb 07 21:14:39 2021 +0100 +++ b/src/cx/list.h Sun Feb 07 21:26:48 2021 +0100 @@ -51,11 +51,14 @@ typedef size_t (*cx_list_find)(cx_list *list, void *elem); +typedef void *(*cx_list_last)(cx_list *list); + typedef struct { cx_list_add add; cx_list_insert insert; cx_list_remove remove; cx_list_find find; + cx_list_last last; } cx_list_class; struct cx_list_s { @@ -73,4 +76,6 @@ size_t cxListFind(CxList list, void *elem); +void *cxListLast(CxList list); + #endif /* UCX_LIST_H */