aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util.h
diff options
context:
space:
mode:
authorGravatar keis <keijser@gmail.com>2011-01-15 22:14:42 +0100
committerGravatar keis <keijser@gmail.com>2011-02-15 21:05:54 +0100
commit2b7539061d8d437ef1507a8cf68d9b565d07c66e (patch)
tree65008548ecc38f5de13d91667e30b85eade497f2 /src/util.h
parent95fb1bfa2a140611ee68ef42447327f6defd9b8d (diff)
new function append_escaped
appends a string after escaping it
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 87fe53a..db19930 100644
--- a/src/util.h
+++ b/src/util.h
@@ -17,3 +17,7 @@ gboolean for_each_line_in_file(const gchar *path, void (*callback)(const gcha
enum exp_type get_exp_type(const gchar*);
gchar* find_existing_file(gchar*);
gchar* argv_idx(const GArray*, const guint);
+/**
+ * appends `src' to `dest' with backslash, single-quotes and newlines in
+ * `src' escaped */
+GString * append_escaped (GString *dest, const gchar *src);