common: New function decode_c_string.
authorWerner Koch <wk@gnupg.org>
Wed, 30 Jan 2019 07:28:56 +0000 (08:28 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 30 Jan 2019 07:28:56 +0000 (08:28 +0100)
commit6ecedd0b25b6b1a33be63b99f2a8256370000521
treed7f7363d870736f8c1a29b8e51ce8e68895a11b9
parentdee0138dc022c7113309087736312d2451adf115
common: New function decode_c_string.

* common/miscellaneous.c (decode_c_string): New.
--

This is basically a copy from the code we use in gpgme and gpa.

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