From 0dbf1d8cc4d24c1c1f552a627cf7fcb865ba775b Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Fri, 18 Sep 1998 18:32:59 +0000 Subject: Added g_memdup implementation -Yosh --- gstrfuncs.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gstrfuncs.c') 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) -- cgit v1.2.3