summaryrefslogtreecommitdiffstats
path: root/common/stringhelp.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-06-22 19:28:33 +0200
committerWerner Koch <wk@gnupg.org>2015-06-22 19:28:33 +0200
commitd37f47081d41584efc0c397432811f9cfa5d5867 (patch)
treee2b8ba8914a1b731f4ff4c29396635824662a650 /common/stringhelp.h
parentgpg: Fix regression due to recent commit 6500f33 (diff)
downloadgnupg2-d37f47081d41584efc0c397432811f9cfa5d5867.tar.xz
gnupg2-d37f47081d41584efc0c397432811f9cfa5d5867.zip
common: Add function strtokenize.
* common/stringhelp.c: Include assert.h. (strtokenize): New. * common/t-stringhelp.c (test_strtokenize): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/stringhelp.h')
-rw-r--r--common/stringhelp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h
index b9b51fd9c..ab16d169c 100644
--- a/common/stringhelp.h
+++ b/common/stringhelp.h
@@ -145,6 +145,10 @@ char *xstrconcat (const char *s1, ...) GNUPG_GCC_A_SENTINEL(0);
char **strsplit (char *string, char delim, char replacement, int *count);
+/* Tokenize STRING using the set of delimiters in DELIM. */
+char **strtokenize (const char *string, const char *delim);
+
+
/*-- mapstrings.c --*/
const char *map_static_macro_string (const char *string);