Re: Malloc()
Re: Malloc()
- Subject: Re: Malloc()
- From: Ondra Cada <email@hidden>
- Date: Wed, 3 Apr 2002 21:02:05 +0200
On Wednesday, April 3, 2002, at 03:22 , Jim Correia wrote:
Of course, for pointer types, when you want the size of the thing pointed
to, I always use sizeof(Type) because sizeof(pointer) will obviously give
the wrong answer.
Obviously, since it was a wrong question -- you asked for the size of the
pointer. If you wanted the size of the pointed thing, you should use
sizeof(*pointer).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.
References: | |
| >Re: Malloc() (From: Jim Correia <email@hidden>) |