HexprintA, HexprintW

int HexprintA(char *s,ulong u);
int HexprintW(wchar_t *s,ulong u);

Converts unsigned long number to ASCII (HexprintA()) or UNICODE (HexprintW()) null-terminated string in hexadecimal uppercase format. If resulting string is shorter than 8 characters and first hexadecimal digit is a letter, prepends string with 0.


Parameters:

s
(out) String that receives text. It must be at least 9 characters long
u
(in) Unsigned long number that will be converted to text


Return values:

Length of the resulting string, characters, not including the terminal null


Example:

u
s
0 0
0x1234 1234
0xFEDC 0FEDC
0xABCD1234 ABCD1234


See also:
HexdumpA(), HexdumpW(), Hexprint4A(), Hexprint4W(), Hexprint8A(), Hexprint8W(), SignedhexA(), SignedhexW()