Function
GLibmemdup
deprecated: 2.68
Declaration [src]
gpointer
g_memdup (
gconstpointer mem,
guint byte_size
)
Description [src]
Allocates byte_size
bytes of memory, and copies byte_size
bytes into it
from mem
. If mem
is NULL
it returns NULL
.
Deprecated since: 2.68
Use g_memdup2()
instead, as it accepts a gsize argument
for byte_size
, avoiding the possibility of overflow in a gsize
→ guint
conversion.