summaryrefslogtreecommitdiff
path: root/glib.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-05-29 10:28:06 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-05-29 10:28:06 +0000
commit37e447f278b37c1138115ee9400ba9f6b418a07a (patch)
tree334cf864be37d2b52e1ecbd4e6bf12fc873295e9 /glib.h
parente334434a9d29ea51bd1564daec22585857264223 (diff)
downloadglib-37e447f278b37c1138115ee9400ba9f6b418a07a.tar.gz
Backslashify also '"' characters.
* gstrfuncs.c (g_strescape): Backslashify also '"' characters. * glib.h: Document g_strescape.
Diffstat (limited to 'glib.h')
-rw-r--r--glib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib.h b/glib.h
index b1a4148de..258736817 100644
--- a/glib.h
+++ b/glib.h
@@ -1551,7 +1551,11 @@ gchar* g_strconcat (const gchar *string1,
...); /* NULL terminated */
gchar* g_strjoin (const gchar *separator,
...); /* NULL terminated */
+/* Return a duplicate of the string with \ and " characters escaped by
+ * a \. The returned string should be freed with g_free().
+ */
gchar* g_strescape (gchar *string);
+
gpointer g_memdup (gconstpointer mem,
guint byte_size);