mpaland/printf

``0`` flag needs to be ignored for integers if precision is specified

Opened this issue · 1 comments

C11 says "if a precision is specified, the 0 flags is ignored" for various integer conversion specifiers.

Test cases:

  • printf("%02.0u", 0); =>
  • printf("%02.0d", 0); =>

Can confirm this, good catch!