dup


Description:

public void* dup (void* mem, uint n)

Allocates byte_size bytes of memory, and copies byte_size bytes into it from mem.

If mem is null it returns null.

Parameters:

mem

the memory to copy.

byte_size

the number of bytes to copy.

Returns:

a pointer to the newly-allocated copy of the memory, or null if mem is null.


Namespace: GLib.Memory
Package: glib-2.0