まさか、
struct hoge h = {...};
void *m;
memcpy( m, &h, sizeof(h) );
みたいなコードなのか?

m = malloc( sizeof(h) );
とか
m= &hogememory;
とか居るだろうに。