Re: strange sprintf problem with Xcode 2.3
Re: strange sprintf problem with Xcode 2.3
- Subject: Re: strange sprintf problem with Xcode 2.3
- From: Cameron Hayne <email@hidden>
- Date: Wed, 7 Jun 2006 20:03:00 -0400
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:
This email sent to email@hidden