• 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: short question but I don't know how to describe it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: short question but I don't know how to describe it


  • Subject: Re: short question but I don't know how to describe it
  • From: Clark Cox <email@hidden>
  • Date: Mon, 8 Mar 2010 16:50:53 -0800

On Mon, Mar 8, 2010 at 4:04 PM, Greg Parker <email@hidden> wrote:
> On Mar 8, 2010, at 3:54 PM, Clark Cox wrote:
>> For types smaller than int, there is no need to explicitly cast; the
>> standard guarantees that such values are converted to int (or unsigned
>> int)  implicitly. In fact, the 'h' and 'hh' modifiers are completely
>> redundant and are ignored when passed to printf-like functions
>
> ... unless you're printing signed variables using %x, for one.

If you're printing signed variables using %x, then you're doing it wrong :)
%x requires an unsigned value.


--
Clark S. Cox III
email@hidden
_______________________________________________

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: 
 >short question but I don't know how to describe it (From: Marx Bievor <email@hidden>)
 >Re: short question but I don't know how to describe it (From: Nick Zitzmann <email@hidden>)
 >Re: short question but I don't know how to describe it (From: Ed Wynne <email@hidden>)
 >Re: short question but I don't know how to describe it (From: Clark Cox <email@hidden>)
 >Re: short question but I don't know how to describe it (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: short question but I don't know how to describe it
  • Next by Date: Using Core Data in Command Line utility
  • Previous by thread: Re: short question but I don't know how to describe it
  • Next by thread: NSServices - Validation bug
  • Index(es):
    • Date
    • Thread