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

printf_("%#.0llo", 0) produces "", should produce "0" #114

Open eyalroz opened 2 years ago

eyalroz commented 2 years ago

This is similar to bug #109 , but with long long arguments (and an ll specifier).

If we call printf_("%#.0llo", 0), we get an empty string ("") instead of getting "0" like we should with the alternative format for octal.