mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Add new function strlist_rev.
* common/strlist.c (strlist_rev): New function. * common/t-strlist.c: New file. * common/Makefile.am (common_sources): Add strlist.c and strlist.h. (module_tests): Add t-strlist. (t_strlist_LDADD): New variable. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
23e163473f
commit
f38bac8883
4 changed files with 106 additions and 2 deletions
|
@ -58,6 +58,7 @@ char * strlist_pop (strlist_t *list);
|
|||
strlist_t strlist_find (strlist_t haystack, const char *needle);
|
||||
int strlist_length (strlist_t list);
|
||||
|
||||
strlist_t strlist_rev (strlist_t *haystack);
|
||||
|
||||
#define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue