summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-02-18 15:37:32 +0100
committerWerner Koch <wk@gnupg.org>2016-02-19 14:35:25 +0100
commit4e134b6e77f558730ec1eceb6b816b0bcfd845e9 (patch)
tree3c263565162e3495bfd5354afecbd62ad7bdc7e3 /src/g10lib.h
parentfd13372fa9069d3a72947ea59c57e33637c936bf (diff)
downloadlibgcrypt-4e134b6e77f558730ec1eceb6b816b0bcfd845e9.tar.gz
Add helper function _gcry_strtokenize.
* src/misc.c (_gcry_strtokenize): New. -- The code has been taken from GnuPG and re-licensed to LPGLv2+ by me as its original author. Minor changes for use in Libgcrypt. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/g10lib.h')
-rw-r--r--src/g10lib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index a579e945..9d2ece9c 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -189,6 +189,9 @@ int _gcry_log_verbosity( int level );
/* Compatibility macro. */
#define log_mpidump _gcry_log_printmpi
+/* Tokeninze STRING and return a malloced array. */
+char **_gcry_strtokenize (const char *string, const char *delim);
+
/*-- src/hwfeatures.c --*/
/* (Do not change these values unless synced with the asm code.) */