diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-23 21:13:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-23 21:31:29 +0100 |
commit | a5ef363808b100856783784654de9b6bf2110173 (patch) | |
tree | d76d39b845ee396be7b4f3e6d25bf88f2aafc2ef /src/basic/escape.h | |
parent | 2001c80560e3dae69e14fd994d3978c187af48b8 (diff) |
escape: add cescape_length() call as generalization of cescape()
Diffstat (limited to 'src/basic/escape.h')
-rw-r--r-- | src/basic/escape.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/escape.h b/src/basic/escape.h index 30604c58f9..52ebf11c4a 100644 --- a/src/basic/escape.h +++ b/src/basic/escape.h @@ -35,6 +35,7 @@ typedef enum UnescapeFlags { } UnescapeFlags; char *cescape(const char *s); +char *cescape_length(const char *s, size_t n); size_t cescape_char(char c, char *buf); int cunescape(const char *s, UnescapeFlags flags, char **ret); |