Well I was only posting it as a helper/example for anyone else but if you like I will look into cleaning it up for official consumption. So I will look at other files and copy/borrow what they have done Peter
----- Original Message ----- From: "Dmitry" <di...@mail.ru> To: <mspgcc-users@lists.sourceforge.net> Sent: Tuesday, July 01, 2003 11:34 AM Subject: Re: [Mspgcc-users] ?printf et al for msp430 Looks nice. I'll put it to libm. Either as 'format' or as 'XXprintXX'... whatever. However, copyright should be either GNU or BSD. Documentation should be provided. Memory usage should be estimated and provided. Header files should be provided (bsd or gnu copyrighted). cheers, ~d On Tuesday 01 July 2003 12:28, Peter Kenyon wrote: > I have noticed that the libraries for IAR and GCC for ?printf seem to be an > all or nothing approach, ie you get floating point or you dont, and in > practice a usable printf family just doesnt fit. I thought I would share a > different approach which I used for a recent project, the key is that I > dont even attempt to try to adhere to the standard for ?printf but just the > options that are useful, in particular I dont bother with left > justification for example, > anyway heres the source code - it supports most types, I hope others find > it useful imho the code looks a hell of a lot neater than most printf's ive > seen which seem littered with goto's etc, OK I know there is a reason for > it BUT... anyway let me know what you guys think > Peter -- /***************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ. (_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314 *****************************************************************/ ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users