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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to