Re: copy array



Hi! 
see g_memdup () in the manual reference:

gpointer g_memdup (gconstpointer mem, guint byte_size);

Allocates byte_size bytes of memory, and copies byte_size bytes into it from mem. If mem is NULL it returns NULL.

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. 


Regards, Victor

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]