|
From: <or...@vp...> - 2003-08-04 14:33:43
|
Hi!
Again, a question. Suppose I have a structure like this:
typedef struct _block{
int array[16][16];
int v1;
int v2;
}block;
So, my question is, is that array[16][16] stored linearly in the
structure? Can I do a memcpy directly on it, to copy it elsewhere, like
this:
memcpy(destination->array,source->array,16*16*sizeof(int));
/* destination*/ /* source*/ /* bytes to copy */
Can I do this?
--
Greetings,
Balázs
|