From d37f47081d41584efc0c397432811f9cfa5d5867 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 22 Jun 2015 19:28:33 +0200 Subject: common: Add function strtokenize. * common/stringhelp.c: Include assert.h. (strtokenize): New. * common/t-stringhelp.c (test_strtokenize): New. Signed-off-by: Werner Koch --- common/stringhelp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/stringhelp.h') 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); -- cgit v1.2.3