Re: How to show a string with hexadecimal integer included?
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
|All times are GMT. The time now is 08:03 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.