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 *****************************************************************/