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 (HexdumpW) null-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: