• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Malloc()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Dumb First Time Apple Scripting question
  • Next by Date: Re: Project Builder Bug? No Classes in Classes tab
  • Previous by thread: Re: Malloc()
  • Next by thread: Re: Malloc()
  • Index(es):
    • Date
    • Thread