diff options
author | keis <keijser@gmail.com> | 2011-01-15 22:14:42 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2011-02-15 21:05:54 +0100 |
commit | 2b7539061d8d437ef1507a8cf68d9b565d07c66e (patch) | |
tree | 65008548ecc38f5de13d91667e30b85eade497f2 /src/util.h | |
parent | 95fb1bfa2a140611ee68ef42447327f6defd9b8d (diff) |
new function append_escaped
appends a string after escaping it
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |