Skip to content

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

@ghost

Description

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); =>

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions