HexdumpA, HexdumpW

int HexdumpA(char *s,uchar *code,int n);
int HexdumpW(wchar_t *s,uchar *code,int n);

Dumps binary code to ASCII (HexdumpA) or UNICODE (HexdumpWnull-terminated string in hexadecimal uppercase format. Returns length of resulting text, not including terminal zero.


Parameters:

s
(out) String that receives text. It must be at least 2n+1 characters long
code
(in) Binary string of length n bytes that will be dumped
n
(in) Lengrh of code, bytes


Return values:

Length of resulting text, not including the terminal null


Example:

code
s
0x01, 0x23, 0x45, 0xAB 012345AB


See also:
HexprintA(), HexprintW(), Hexprint4A(), Hexprint4W(), Hexprint8A(), Hexprint8W(), SignedhexA(), SignedhexW()