Package: gcc-mingw-w64-i686
Version: 4.8.2-11+12
As per printf documentation:
[...]
# The value should be converted to an "alternate form".
For o conversions, the first character of the output string is made
zero (by prefixing a 0 if it was
not zero already). For x and X conversions, a nonzero
result has the string "0x" (or "0X" for X conversions) prepended to
it. For a, A, e, E, f, F, g, and
G conversions, the result will always contain a decimal
point, even if no digits follow it (normally, a decimal point appears
in the results of those converā
sions only if a digit follows). For g and G
conversions, trailing zeros are not removed from the result as they
would otherwise be. For other conversions,
the result is undefined.
[...]
However:
$ cat t.c
#include <stdio.h>
int main()
{
int val = 0;/* zero */
fprintf(stdout, "value=%#x\n", val );
return 0;
}
$ i686-w64-mingw32-gcc t.c
$ wine32 a.exe
value=0x0
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]