mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
58eafd11ed
commit
849467870e
3 changed files with 116 additions and 0 deletions
|
@ -151,6 +151,10 @@ char **strtokenize (const char *string, const char *delim);
|
|||
* provided ARRAY. */
|
||||
int split_fields (char *string, char **array, int arraysize);
|
||||
|
||||
/* Split STRING into colon delimited fields and store them in the
|
||||
* provided ARRAY. */
|
||||
int split_fields_colon (char *string, char **array, int arraysize);
|
||||
|
||||
/* Return True if MYVERSION is greater or equal than REQ_VERSION. */
|
||||
int compare_version_strings (const char *my_version, const char *req_version);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue