Re: YACWP (Yet Another CodeWarrior Port)
Re: YACWP (Yet Another CodeWarrior Port)
- Subject: Re: YACWP (Yet Another CodeWarrior Port)
- From: Lawrence Gold <email@hidden>
- Date: Thu, 16 Jun 2005 16:34:39 -0600
On Jun 16, 2005, at 3:19 PM, Nick Nallick wrote:
8) Is there a more legitimate way to dereference and increment a
pointer by a size other than it's native size than what I'm doing
in the following?
UInt8* ptr = something;
UInt32 value = *((UInt32*) ptr)++;
warning: target of assignment not really an lvalue; this will be a
hard error in the future
Something like
ptr = (UInt8*) ((UInt32*) ptr + 1);
UInt32 value = *((UInt32*) ptr);
should do the trick.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden