1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

common: New function tokenize_to_strlist.

* common/strlist.c (append_to_strlist_try): Factor code out to ...
(do_append_to_strlist): new.
(tokenize_to_strlist): New.

* common/t-strlist.c (test_tokenize_to_strlist): New.
This commit is contained in:
Werner Koch 2024-05-31 17:21:49 +02:00
parent 42b0e9558a
commit d2dca58338
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 292 additions and 18 deletions

View file

@ -52,6 +52,9 @@ strlist_t append_to_strlist_try (strlist_t *list, const char *string);
strlist_t append_to_strlist2 (strlist_t *list, const char *string,
int is_utf8);
strlist_t tokenize_to_strlist (strlist_t *list,
const char *string, const char *delim);
strlist_t strlist_copy (strlist_t list);
strlist_t strlist_prev (strlist_t head, strlist_t node);