• 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: va_end() & [NSString initWithFormat:arguments:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: va_end() & [NSString initWithFormat:arguments:]


  • Subject: Re: va_end() & [NSString initWithFormat:arguments:]
  • From: "Patrick M. Rutkowski" <email@hidden>
  • Date: Thu, 29 Apr 2010 23:00:56 -0400

Ah, that's pretty clear cut then. Got it, thanks :-)

On Thu, Apr 29, 2010 at 10:49 PM, Ken Thomases <email@hidden> wrote:
> On Apr 29, 2010, at 9:44 PM, Patrick M. Rutkowski wrote:
>
>> Do I have to do a va_end() after using -[NSString initWithFormat:arguments:]?
>
> If you call va_start(), you need to call va_end().  From the stdarg(3) man page:
>
> "Note that each call to va_start() must be matched by a call to va_end(), from within the same function."
>
> Note especially that last part.  These aren't actually functions, they're macros.  They can do funky things and the scope where they're invoked matters.
>
> Regards,
> Ken
>
>
_______________________________________________

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

References: 
 >va_end() & [NSString initWithFormat:arguments:] (From: "Patrick M. Rutkowski" <email@hidden>)
 >Re: va_end() & [NSString initWithFormat:arguments:] (From: Ken Thomases <email@hidden>)

  • Prev by Date: test if folder contains file based on NSURLs
  • Next by Date: Re: Getting a bezier path for a character
  • Previous by thread: Re: va_end() & [NSString initWithFormat:arguments:]
  • Next by thread: test if folder contains file based on NSURLs
  • Index(es):
    • Date
    • Thread