• 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: Crash when calling va_arg()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash when calling va_arg()


  • Subject: Re: Crash when calling va_arg()
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 04 Jul 2012 19:40:40 -0500

On Jul 4, 2012, at 7:34 PM, Tito Ciuro wrote:

> It makes total sense now. Out of the two options (NULL sentinel vs a number to indicate the number of args), I would choose NULL because out of the two, it's more foolproof. Is there a consensus about which option is considered best practice?

Neither method is much foolproof at all — both of them can easily be undermined by even low-level fools. However, using a NULL sentinel is what is more commonly done.

Charles

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Crash when calling va_arg()
      • From: Tito Ciuro <email@hidden>
    • Re: Crash when calling va_arg()
      • From: Fritz Anderson <email@hidden>
References: 
 >Crash when calling va_arg() (From: Tito Ciuro <email@hidden>)
 >Re: Crash when calling va_arg() (From: Fritz Anderson <email@hidden>)
 >Re: Crash when calling va_arg() (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Re: Crash when calling va_arg()
  • Next by Date: Re: Crash when calling va_arg()
  • Previous by thread: Re: Crash when calling va_arg()
  • Next by thread: Re: Crash when calling va_arg()
  • Index(es):
    • Date
    • Thread