Hi Stephen,
On Thu, Jun 01, 2000 at 09:29:36AM -0400, Stephen D. Cohen wrote:
> 3) How do I get sprintf or rtl_printf to format a floating point number for
> me? I'm getting tired of printing 1000 times my float as a long and adding
> the decimal point in my head. Must be something simple (and stupid) that I
> am doing wrong.
>
You have no floating point format support in kernel memory space.
Probably the easiest solution for you is to pass your FP numbers
to a Linux process using fifo or shared memory and print them by
the Linux process.
My RT application needs some FP format routines like strtod, full
sprintf. I've grabbed unmodified sources from glibc, compiled them
with RT compiler options and linked the result with my application.
It should not work, but it does. :-O
regards,
--
..........................................................................
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 |
.........................................................................
-- [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/