diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-11-06 10:51:35 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-11-06 11:03:50 +0100 |
commit | f38bac8883ea2e9ed8e2836f97a953efb85e774c (patch) | |
tree | cb78fec9c6d071702932036904dd7fcca7328825 /common/strlist.h | |
parent | common: Include required, but not included headers in t-support.h. (diff) | |
download | gnupg2-f38bac8883ea2e9ed8e2836f97a953efb85e774c.tar.xz gnupg2-f38bac8883ea2e9ed8e2836f97a953efb85e774c.zip |
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>
Diffstat (limited to 'common/strlist.h')
-rw-r--r-- | common/strlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/strlist.h b/common/strlist.h index fccce8704..acb92f700 100644 --- a/common/strlist.h +++ b/common/strlist.h @@ -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) |