diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-29 01:48:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-29 01:48:57 +0100 |
commit | 4fe88d28a4cfa504c1f2362d4a7030fae4c4af29 (patch) | |
tree | 7cbbb94f12dffba4e3105657a5c324198c99f10b /util.h | |
parent | 25ac040b489a7bf9c8608308a721d32e20a22911 (diff) |
add various escaping/path handling utility functions
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |