see glibc source and feel free to make your own version. Would be good to
have one.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 4:33 PM
Subject: Re: [rtl] printing float
>
>
> Maybe somebody could find the source code for the full service version of
> sprintf and let us use it.
>
> Ollie
>
>
>
>
>
> Pavel Andris <[EMAIL PROTECTED]>@fsmlabs.com on 04/26/2001 11:36:18 PM
>
> Please respond to [EMAIL PROTECTED]
>
> Sent by: [EMAIL PROTECTED]
>
>
> To: Frederic Cazenave <[EMAIL PROTECTED]>
> cc: [EMAIL PROTECTED]
> Subject: Re: [rtl] printing float
>
>
> Hi Frederic,
>
> On Thu, Apr 26, 2001 at 01:14:12PM +0000, Frederic Cazenave wrote:
> > Hi,
> >
> > What can I do to print float inside a fp thread ???
> > I tryed to do
> > char f_print[128];
> >
> > sprintf(f_print,"%f %f",128.5, 12.5);
> > rtl_printf("%s \n",f_print);
> >
> > but the result is : %f %f
>
> Kernel's sprintf does not support floating point formatting. If it is
> a must-be for you, probably the easiest way is to separate the integer
> and fractional part of your float and print it as two integers.
>
> Regards,
>
> pa
>
> --
> ..........................................................................
> Pavel Andris | tel: +421 7 5941 2167
> Institute of Control Theory and Robotics | fax: +421 7 5477 6045
> Slovak Academy of Sciences |
> Dubravska cesta 9 | e-mail: [EMAIL PROTECTED]
> SK - 842 37 Bratislava |
> Slovakia |
> .........................................................................
>
> "The hardest thing is to take something people don't need and make it part
> of their lives."
> Sheila Hewett, vice-president for marketing and advertising
>
...........................................................................
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/