• 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: "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


  • Follow-Ups:
    • Re: strange sprintf problem with Xcode 2.3
      • From: Cameron Hayne <email@hidden>
    • Re: strange sprintf problem with Xcode 2.3
      • From: Cameron Hayne <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>)

  • Prev by Date: Re: strange sprintf problem with Xcode 2.3
  • Next by Date: Re: strange sprintf problem with Xcode 2.3
  • 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