From 2689cb081b4011fea08947e2f7a8f74cd61a1903 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 12 Sep 2005 08:27:01 +0000 Subject: We have so many special cases for smartlists of strings, why not add a sort function? svn:r5014 --- src/common/container.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/container.h') diff --git a/src/common/container.h b/src/common/container.h index 5df4e9e89..56f5e35bf 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -52,6 +52,7 @@ void smartlist_del_keeporder(smartlist_t *sl, int idx); void smartlist_insert(smartlist_t *sl, int idx, void *val); void smartlist_sort(smartlist_t *sl, int (*compare)(const void **a, const void **b)); +void smartlist_sort_strings(smartlist_t *sl); void *smartlist_bsearch(smartlist_t *sl, const void *key, int (*compare)(const void *key, const void **member)); -- cgit v1.2.3