diff options
Diffstat (limited to 'gstrfuncs.c')
-rw-r--r-- | gstrfuncs.c | 9 |
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) |