mpaland / printf

Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
MIT License
2.47k stars 452 forks source link

Width specifier not always respected for non-left-aligned fields #113

Open eyalroz opened 2 years ago

eyalroz commented 2 years ago

If we run sprintf_("%-20.5i", 123), we get 123 + 17 spaces rather than 00123 + 15 spaces.

This bug was noticed and supposedly fixed in this commit of mickjc750's fork.