summaryrefslogtreecommitdiff
path: root/src/basic/escape.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-23 21:13:59 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-23 21:31:29 +0100
commita5ef363808b100856783784654de9b6bf2110173 (patch)
treed76d39b845ee396be7b4f3e6d25bf88f2aafc2ef /src/basic/escape.h
parent2001c80560e3dae69e14fd994d3978c187af48b8 (diff)
escape: add cescape_length() call as generalization of cescape()
Diffstat (limited to 'src/basic/escape.h')
-rw-r--r--src/basic/escape.h1
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);