mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
e0873a3372
commit
d37f47081d
3 changed files with 212 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue