summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-29 01:48:57 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-29 01:48:57 +0100
commit4fe88d28a4cfa504c1f2362d4a7030fae4c4af29 (patch)
tree7cbbb94f12dffba4e3105657a5c324198c99f10b /util.h
parent25ac040b489a7bf9c8608308a721d32e20a22911 (diff)
add various escaping/path handling utility functions
Diffstat (limited to 'util.h')
-rw-r--r--util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/util.h b/util.h
index fcf380031d..32da179aee 100644
--- a/util.h
+++ b/util.h
@@ -106,5 +106,19 @@ char *strstrip(char *s);
char *file_in_same_dir(const char *path, const char *filename);
char hexchar(int x);
+int unhexchar(char c);
+char octchar(int x);
+int unoctchar(char c);
+
+char *cescape(const char *s);
+char *cunescape(const char *s);
+
+char *path_kill_slashes(char *path);
+
+bool path_startswith(const char *path, const char *prefix);
+
+char *ascii_strlower(char *path);
+
+char *xescape(const char *s, const char *bad);
#endif