mpaland/printf

hexa and 0

NotSqrt opened this issue · 2 comments

Hi,

It seems that printf("%#x", 0) outputs 0 instead of 0x0.

Is that normal ?

Thanks !

Ok, I've read the readme, it's expected, and it's the same behavior in stdio.

Indeed, that's not a bug, it's a feature defined by the standard. I don't like it as well, but yeah, the specification has the last word 😉