Displaying 2 results from an estimated 2 matches for "hexnumer".
Did you mean:
hexnumber
2018 Feb 08
2
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
From: Brett Walker <brett.walker at geometry.com.au>
When printing hexadecimal numbers to a fixed width, padded with leading zeros,
and also having a leading '0x'; the resultant string can be shortened by up to
two characters if any leading zero padding character required is.
int hexnum = 0x00001234;
printf("%08X", hexnum); // results in 00001234
2018 Feb 08
0
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
On Thu, Feb 08, 2018 at 11:01:21AM +0000, Brett Walker via Syslinux wrote:
> From: Brett Walker <brett.walker at geometry.com.au>
>
> When printing hexadecimal numbers to a fixed width, padded with leading zeros,
> and also having a leading '0x'; the resultant string can be shortened by up to
> two characters if any leading zero padding character required is.
>