You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle 0x / 0b when width is equal to string size (issue mpaland#50):
printf("%#4x", 0x1234); -> "0x1234"
Do not print # prefix if it does not fit into PRINTF_NTOA_BUFFER_SIZE
%#<prec>o is implemented as in libc:
- printf("%#0o", 0); does output octal prefix ("0")
- printf("%#3o", 1); printf "001" - padding zero is used as octal
prefix (issue mpaland#53)
Left padding and precision is handled correctly (issue mpaland#49):
- printf("%-10.6d", 1024); -> "001024 "
ledvinap
added a commit
to ledvinap/printf
that referenced
this issue
May 13, 2019
Handle 0x / 0b when width is equal to string size (issue mpaland#50):
printf("%#4x", 0x1234); -> "0x1234"
Do not print # prefix if it does not fit into PRINTF_NTOA_BUFFER_SIZE
%#<prec>o is implemented as in libc:
- printf("%#0o", 0); does output octal prefix ("0")
- printf("%#3o", 1); printf "001" - padding zero is used as octal
prefix (issue mpaland#53)
Left padding and precision is handled correctly (issue mpaland#49):
- printf("%-10.6d", 1024); -> "001024 "
sprintf("%#4x", 0x1234);
produces `"0x34"It is caused by wrong '0x' space compensation when width equals output
BTW: I'm fixing issues reported, no need to work on it immediately
The text was updated successfully, but these errors were encountered: