summaryrefslogtreecommitdiffstats
path: root/common/strlist.h
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-09-19 01:25:54 +0200
committerNeal H. Walfield <neal@g10code.com>2015-09-19 01:26:48 +0200
commit8499c4f84a664bedbdf5a5689cb02420909f1968 (patch)
treefc234f6a7b8df59b428ecd264932c014119e8c34 /common/strlist.h
parentgpgconf: Change displayed name of Dirmngr to "Network Manager". (diff)
downloadgnupg2-8499c4f84a664bedbdf5a5689cb02420909f1968.tar.xz
gnupg2-8499c4f84a664bedbdf5a5689cb02420909f1968.zip
common: Add new function strlist_length.
* common/strlist.c (strlist_length): New function. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
Diffstat (limited to 'common/strlist.h')
-rw-r--r--common/strlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/strlist.h b/common/strlist.h
index 5c17ce69f..fccce8704 100644
--- a/common/strlist.h
+++ b/common/strlist.h
@@ -56,6 +56,7 @@ strlist_t strlist_last (strlist_t node);
char * strlist_pop (strlist_t *list);
strlist_t strlist_find (strlist_t haystack, const char *needle);
+int strlist_length (strlist_t list);
#define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0)