mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
Added g_memdup implementation
-Yosh
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user