Re: C question for you old guys ;-)
Re: C question for you old guys ;-)
- Subject: Re: C question for you old guys ;-)
- From: Martin Häcker <email@hidden>
- Date: Mon, 23 Jun 2003 01:19:03 +0200
At 8:49 Uhr +1000 23.06.2003, Mark Heath wrote:
>Hi there,
to get back on topic of programming, could anybody of you tell me why
this bit of code produces two different results?
freeSpacePointer adress = 0x00040000; // Really a ((unsigned char *)
0x00040000)
long tryToGet = 1024; // 0x400
// return freeSpacePointer + tryToGet; /* Doesn't work... Why? */
^^^^^^^^^^^^^^^^
Silly question but shouldn't this be
return address + tryToGet;
?
Uups, silly mee... Of course this was a typing error when I tried to
type this into the e-mail. The actual code was correct.
cu Martin
--
dont.wanna.tell
[ot]coder - hehe
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.