From 1b87193c3d63c8d884b5a45451a000d9b930521e Mon Sep 17 00:00:00 2001 From: wil Date: Thu, 29 Dec 2016 20:30:32 +0100 Subject: Added "layout promote" command. --- include/list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/list.h') diff --git a/include/list.h b/include/list.h index f478b6bb..7eead4ac 100644 --- a/include/list.h +++ b/include/list.h @@ -22,4 +22,6 @@ void list_qsort(list_t *list, int compare(const void *left, const void *right)); int list_seq_find(list_t *list, int compare(const void *item, const void *cmp_to), const void *cmp_to); // stable sort since qsort is not guaranteed to be stable void list_stable_sort(list_t *list, int compare(const void *a, const void *b)); +// swap two elements in a list +void list_swap(list_t *list, int src, int dest); #endif -- cgit v1.2.3