Mercurial > hg > th-libs
diff th_datastruct.h @ 757:2ab2fece83ea
Add th_llist_length_slow().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 01 Feb 2023 14:09:25 +0200 |
parents | d91d1174cfd8 |
children | 618c7fa3a4f8 |
line wrap: on
line diff
--- a/th_datastruct.h Wed Feb 01 14:09:12 2023 +0200 +++ b/th_datastruct.h Wed Feb 01 14:09:25 2023 +0200 @@ -41,6 +41,7 @@ th_llist_t * th_llist_get_nth(th_llist_t *list, const size_t n); size_t th_llist_length(const th_llist_t *list); +size_t th_llist_length_slow(const th_llist_t *list); ssize_t th_llist_position(const th_llist_t *list, const th_llist_t *node); void th_llist_reverse(th_llist_t **list);