1
How do I copy a pointer of the type struct
in C?
For example, to copy a simple struct is just struct1 = struct2
;
but, when it comes to 2 pointers, when it does this, one points to the same place as the other, and then the same, the content changes in the original, wanted to know a way to make a copy of a pointer to another, but only the content, not the memory address.
*pointer 1 = *pointer 2;
– pmg