E
Erik Leunissen
L.S.
I've observed unexpected behaviour regarding the usage of the '#' flag
in the conversion specification in the printf() family of functions. Did
I detect a bug, or is there something wrong with my expectations
regarding the effect of the following code:
printf("NULL as hex: %#4.2x\n", '\0');
Expected output
===============
NULL as hex: 0x00
Observed output (white space is significant)
===============
NULL as hex: 00
Thanks in advance for any comments,
Erik Leunissen
==============
I've observed unexpected behaviour regarding the usage of the '#' flag
in the conversion specification in the printf() family of functions. Did
I detect a bug, or is there something wrong with my expectations
regarding the effect of the following code:
printf("NULL as hex: %#4.2x\n", '\0');
Expected output
===============
NULL as hex: 0x00
Observed output (white space is significant)
===============
NULL as hex: 00
Thanks in advance for any comments,
Erik Leunissen
==============