On December 16, 2002 02:03 pm, Dave Lippincott wrote:
> #1 changes the address of fRecOne to point to the same memory location as
> fRecPTwo
No...
By de-referencing the pointers, you make a shallow copy of the data. If it
was written:
frecPOne = fRecPTwo;
You copy the pointers.
Op #1: *fRecPOne = *fRecPTwo;
Should copy the data. By shallow I mean it copies the data exactly (it copies
the pointers inside the structure, not the data the pointers point to.)
> #2 copies the contents of fRecPTwo into fRecPOne
Yes.
The above is the concensus of a few developers around the office here.
--
Matthew (Darkstorm) Bevan [EMAIL PROTECTED]
Margin Software, NECTI. http://www.marginsoftware.com
Re-inventing the wheel, every time.
- What this country needs is a good five dollar plasma weapon.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/