aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-30 07:28:56 +0000
committerWerner Koch <[email protected]>2019-01-30 07:28:56 +0000
commit6ecedd0b25b6b1a33be63b99f2a8256370000521 (patch)
treed7f7363d870736f8c1a29b8e51ce8e68895a11b9 /common/util.h
parentdoc: Fix typo (diff)
downloadgnupg-6ecedd0b25b6b1a33be63b99f2a8256370000521.tar.gz
gnupg-6ecedd0b25b6b1a33be63b99f2a8256370000521.zip
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 8234b6257..a4b1cbd79 100644
--- a/common/util.h
+++ b/common/util.h
@@ -303,6 +303,7 @@ void print_hexstring (FILE *fp, const void *buffer, size_t length,
int reserved);
char *try_make_printable_string (const void *p, size_t n, int delim);
char *make_printable_string (const void *p, size_t n, int delim);
+char *decode_c_string (const char *src);
int is_file_compressed (const char *s, int *ret_rc);