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: "Justin C. Walker" <email@hidden>
- Date: Wed, 7 Jun 2006 15:01:28 -0700
On Jun 7, 2006, at 2:56 PM, Roberto Cruz wrote:
On 07/06/2006, at 22:36, Roberto Cruz wrote:
I try to do the following
sprintf(CurrentMultiplier, "%.1f", (double)CurrentFID);
printf("CurrentMultiplier is %s", CurrentMultiplier);
The result
> CurrentMultiplier is f
Just to clarify this behavior happen on kernel driver programming,
not when you can include stdio.h
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.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email
_______________________________________________
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