I have a function
int CHAN_SEND(CHANNEL_t Channel, void *stuff, int size)
And I want a copy of what stuff points too. size is the size of the data.
so this sets up space for the data
void * data = malloc(size);
but how do I copy the data from stuff* to data*
Thanks much for your help! I have been looking all over the net for an answer to this.
Thanks so much!! I new there was probably a c function for this.