Copy unsigned char * to unsigned char*
<p>I need to save packet state for a while.
So I read the packet data which is represented as unsigned char* and than I create a record with this data and save the record in the list for a while.</p>

<p>Which will be a better way to represent the packet in the record as char* or as char[].</p>

<p>How do i copy the read data ( unsigned char <em>) to both options :
To unsigned char[] and to unsigned char</em>*</p>

<p>I need to copy the data because each time I read packet it will be readed to the same char*,so when I save it for a while I need to copy data first</p>
