diff options
Diffstat (limited to 'src/systemd/src/basic/escape.h')
-rw-r--r-- | src/systemd/src/basic/escape.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemd/src/basic/escape.h b/src/systemd/src/basic/escape.h index 30604c58f9..c710f01743 100644 --- a/src/systemd/src/basic/escape.h +++ b/src/systemd/src/basic/escape.h @@ -22,8 +22,12 @@ ***/ #include <inttypes.h> +#include <stddef.h> +#include <stdint.h> #include <sys/types.h> +#include "string-util.h" + /* What characters are special in the shell? */ /* must be escaped outside and inside double-quotes */ #define SHELL_NEED_ESCAPE "\"\\`$" @@ -35,6 +39,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); |