common: New function split_fields_colon.
authorWerner Koch <wk@gnupg.org>
Mon, 17 Jul 2017 11:00:44 +0000 (13:00 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 17 Jul 2017 13:53:16 +0000 (15:53 +0200)
commit849467870ee1c10e0a7b1e89cfc9e8214e4963fe
treec0c02cb105b0b928236636e453767425d85dd8f8
parent58eafd11ed5501c0b72fcb553eb3e097ad29b3c6
common: New function split_fields_colon.

* common/stringhelp.c (split_fields_colon): New.
* common/t-stringhelp.c (test_split_fields_colon): New test.
(main): Call that test.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/stringhelp.c
common/stringhelp.h
common/t-stringhelp.c