summaryrefslogtreecommitdiff
path: root/gstrfuncs.c
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1998-09-18 18:32:59 +0000
committerManish Singh <yosh@src.gnome.org>1998-09-18 18:32:59 +0000
commit0dbf1d8cc4d24c1c1f552a627cf7fcb865ba775b (patch)
treef84efa38363500f81537e3a704dedcaf294f06f5 /gstrfuncs.c
parent4193614b1c7b8fcce9c7c524d33e85b9fc51321a (diff)
downloadglib-0dbf1d8cc4d24c1c1f552a627cf7fcb865ba775b.tar.gz
Added g_memdup implementation
-Yosh
Diffstat (limited to 'gstrfuncs.c')
-rw-r--r--gstrfuncs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gstrfuncs.c b/gstrfuncs.c
index 176985434..d4777368c 100644
--- a/gstrfuncs.c
+++ b/gstrfuncs.c
@@ -43,6 +43,15 @@ g_strdup (const gchar *str)
return new_str;
}
+guint8*
+g_memdup (const guint8 *mem,
+ guint len)
+{
+ guint8* mem2 = g_malloc (len);
+ memcpy (mem2, mem, len);
+ return mem2;
+}
+
gchar*
g_strndup (const gchar *str,
guint n)