diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-07 20:58:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-07 20:58:02 +0200 |
commit | 6febfd0d4bdf7519e119149b8d8ec03c210aed1d (patch) | |
tree | a56870e2efd0e93d95d9d58664cc9ae808ee0d6f /src/util.h | |
parent | 0bab36f250cc79776954fd6066c1e2a33f64c016 (diff) |
util: introduce cunescape_length()
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util.h b/src/util.h index fed0e670ef..ff79583d80 100644 --- a/src/util.h +++ b/src/util.h @@ -222,6 +222,12 @@ int undecchar(char c); char *cescape(const char *s); char *cunescape(const char *s); +char *cunescape_length(const char *s, size_t length); + +char *xescape(const char *s, const char *bad); + +char *bus_path_escape(const char *s); +char *bus_path_unescape(const char *s); char *path_kill_slashes(char *path); @@ -230,11 +236,6 @@ bool path_equal(const char *a, const char *b); char *ascii_strlower(char *path); -char *xescape(const char *s, const char *bad); - -char *bus_path_escape(const char *s); -char *bus_path_unescape(const char *s); - bool ignore_file(const char *filename); bool chars_intersect(const char *a, const char *b); |