diff options
author | Neal H. Walfield <[email protected]> | 2015-03-13 14:08:22 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-03-23 18:58:25 +0000 |
commit | 79907ad256f5b84f36cbebdc92e5a05d9e266557 (patch) | |
tree | cbcd88d331b16c85d2e4c589707c55ef12510da3 /common/strlist.h | |
parent | common: Add new helper function, strsplit. (diff) | |
download | gnupg-79907ad256f5b84f36cbebdc92e5a05d9e266557.tar.gz gnupg-79907ad256f5b84f36cbebdc92e5a05d9e266557.zip |
Add new function strlist_find.
* common/strlist.h (strlist_find): New declaration.
* common/strlist.c (strlist_find): New function.
--
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'common/strlist.h')
-rw-r--r-- | common/strlist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/strlist.h b/common/strlist.h index c72549fe8..94567df0a 100644 --- a/common/strlist.h +++ b/common/strlist.h @@ -55,6 +55,9 @@ strlist_t strlist_prev (strlist_t head, strlist_t node); strlist_t strlist_last (strlist_t node); char * strlist_pop (strlist_t *list); +strlist_t strlist_find (strlist_t haystack, const char *needle); + + #define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0) |