diff options
author | Werner Koch <wk@gnupg.org> | 2016-02-18 15:37:32 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-02-19 14:35:25 +0100 |
commit | 4e134b6e77f558730ec1eceb6b816b0bcfd845e9 (patch) | |
tree | 3c263565162e3495bfd5354afecbd62ad7bdc7e3 /src/g10lib.h | |
parent | fd13372fa9069d3a72947ea59c57e33637c936bf (diff) | |
download | libgcrypt-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.h | 3 |
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.) */ |