I have a structure of the following type:
struct SPacket
{
    unsigned char payload[260]; 
    unsigned int payloadLength; 
}; 
I have a pointer object to this structure:
SPacket* ptrObj; 
how can I perform a deep copy of ptrObj into a another object:
SPacket obj;  
 
     
    