In my program i have a couple of void pointers (pointing to a chunk of data) a few integer variables and so on...

I need to send all this data(say over the network)..



for example

Code:
 
void *a,*b;
int c,d,e;
 
----
----
---
/*something like*/
send(a+b+c+d+e)
so i need to send the data together.. how do i clump the data together..