• 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: strange sprintf problem with Xcode 2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange sprintf problem with Xcode 2.3


  • Subject: Re: strange sprintf problem with Xcode 2.3
  • From: Roberto Cruz <email@hidden>
  • Date: Thu, 8 Jun 2006 02:10:10 +0200


On 08/06/2006, at 2:03, Cameron Hayne wrote:

On 7-Jun-06, at 6:01 PM, Justin C. Walker wrote:
It is likely that the kernel implementation of *printf has a more limited menu of special "%" characters that it supports. I doubt floating point is included in that list.

As a followup to my last post, here's the comment from the top of the file "osfmk/kern/printf.c" (under the "xnu" folder in the Darwin source code):


* This version implements the following printf features:
*
* %d decimal conversion
* %u unsigned conversion
* %x hexadecimal conversion
* %X hexadecimal conversion with capital letters
* %D hexdump, ptr & separator string ("m", ptr, ":") - > XX:XX:XX:XX:XX:XX
* if you use, "%*D" then there's a length, the data ptr and then the separator
* %o octal conversion
* %c character
* %s string
* %m.n field width, precision
* %-m.n left adjustment
* %0m.n zero-padding
* %*.* width and precision taken from arguments
*
* This version does not implement %f, %e, or %g. It accepts, but
* ignores, an `l' as in %ld, %lo, %lx, and %lu, and therefore will not
* work correctly on machines for which sizeof(long) != sizeof(int).
*
* As mentioned, this version does not return any reasonable value.

-- Cameron Hayne email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40cryptonome.com


This email sent to email@hidden


Cameron,

many thanks, I was looking into the code too, seen that I have to implement this.

Many, many thanks
Cryptonome
InCrew Software
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >strange sprintf problem with Xcode 2.3 (From: Roberto Cruz <email@hidden>)
 >Re: strange sprintf problem with Xcode 2.3 (From: Roberto Cruz <email@hidden>)
 >Re: strange sprintf problem with Xcode 2.3 (From: "Justin C. Walker" <email@hidden>)
 >Re: strange sprintf problem with Xcode 2.3 (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: strange sprintf problem with Xcode 2.3
  • Next by Date: Calling PPC framework from Universal app
  • Previous by thread: Re: strange sprintf problem with Xcode 2.3
  • Next by thread: Re: strange sprintf problem with Xcode 2.3
  • Index(es):
    • Date
    • Thread