Re: copy array
- From: Victor <drzoidberg wanadoo es>
- To: vladeck sezampro yu
- Cc: Gtk app devel <gtk-app-devel-list gnome org>
- Subject: Re: copy array
- Date: 28 Jul 2002 17:42:55 +0200
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]