Open eyalroz opened 3 years ago
According to cppreference.com, and as implemented in glibc, the alternative mode for %o must ensure at least one leading zero is printed. Thus,
%o
printf_("%#.0o", 0)
must produce "0", not "". And yet - the latter is produced.
"0"
""
According to cppreference.com, and as implemented in glibc, the alternative mode for
%o
must ensure at least one leading zero is printed. Thus,must produce
"0"
, not""
. And yet - the latter is produced.