mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-27 19:34:33 +00:00
The C standard states, for conversions using the d, i, b, B, o, u, x or X conversion specifiers: > The precision specifies the minimum number of digits to appear; if > the value being converted can be represented in fewer digits, it is > expanded with leading zeros. - C standard, 7.23.6.1. The fprintf function However, cosmopolitan currently suppresses the addition of leading zeros when the minus flag is set. This is not reflected by anything within the C standard, meaning that behavior is incorrect. This patch fixes this. |
||
|---|---|---|
| .. | ||
| bits | ||
| calls | ||
| dns | ||
| fmt | ||
| intrin | ||
| log | ||
| mem | ||
| nexgen32e | ||
| release | ||
| runtime | ||
| sock | ||
| stdio | ||
| str | ||
| thread | ||
| time | ||
| tinymath | ||
| x | ||
| xed | ||
| zipos | ||
| test.mk | ||