Hi I made an implementation of the %e option for printf in my own printf_large.c file that I call so far printf_exp.c and can be found along with a test program called writeser.c. They can be found at: http://gudjon.org/sdcc/
If the code is usable and it can be implemented into sdcc, please do but.... There are two errors. When I reset my microcontroller, it doubles the first digit 33.123457E18 but afterwards, it always outputs the correct number: 3.123457E18 I have tried all different versions of numbers and all are displayed correctly except for that one, right after reset. There is also some other problem that makes my more complicated application crash when using it. If anyone is willing to take a look at the code I would be very happy. Cheers Gudjon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user