nanoprintf
nanoprintf copied to clipboard
The smallest public printf implementation for its feature set.
Right now the code that splits floats up into `[integer portion | number of leading 0's after decimal | decimal portion]` stores the decomposed integer + decimal portions as uint64_t....
Make sure it compiles cleanly, has correct compiler support ifdefs + pragmas, etc
Rework conformance + mpaland tests to compile nanoprintf as a separate .o file and link in. That allows for a full dimension of the conformance tests to run against C...
http://www7.open-std.org/JTC1/SC22/WG14/www/docs/n2858.pdf Lets the user specify how many bits of the supplied integral value should be printed
Does anyone actually use this? I don't get it. ``` converts floating-point number to the hexadecimal exponent notation. For the a conversion style [-]0xh.hhhp±d is used. For the A conversion...
Analyze the value and figure out whether to print float-decimal or float-exponent
The readme doesn't give an example of the actual npf_putc callback, just how to call nanoprintf with a callback. Add an actual callback, with use of the context pointer, to...
This is a complete rewrite of the floating point code, which introduces the improvements discussed in #221 and #223. The main new features: - Introduces a configurable 64/32/16/8-bit unsigned integer...