On Wed, 25 Jun 2003 23:50:11 +0000, Christopher Culver wrote:
> I have a string which should include a hexadecimal number. I've tried %x
> like this:
>
> printf("This is a hex number: %x", hexNumber)
>
> but this results in only the minimum number of digits being displayed,
> i.e. "7e" instead of "0x007e". Is there anything I can use in place of %x
> which will display the fully qualified hexadecimal number?
>
> Christopher Culver
0x%04x is probably what you want.
--
Freenet distribution not available
BOFH Excuse #95:
Pentium FDIV bug
|