common: New function split_fields.
authorWerner Koch <wk@gnupg.org>
Sat, 11 Jun 2016 10:09:48 +0000 (12:09 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 11 Jun 2016 10:09:48 +0000 (12:09 +0200)
commit5ba99d9302cd86aee99958b71075d5288bb430aa
tree6f89e234b72937ffddcde93772f71b30036c2012
parentc41c46fa84cabbed74a13ded51fc3a817a919367
common: New function split_fields.

* common/stringhelp.c (split_fields): New.
* common/t-stringhelp.c: Include assert.h.
(test_split_fields): New.
(main): Call test.

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