HEXDUMP(9) | Kernel Developer's Manual | HEXDUMP(9) |
hexdump
— dump a
block of bytes to the console in hexadecimal form
#include
<sys/systm.h>
void
hexdump
(void
*ptr, int length,
const char *hdr,
int flags);
The
hexdump
()
function prints an array of bytes to the console in hexadecimal form, along
with the ASCII representation of the bytes, if possible. By default, each
line of output will start with an offset count, followed by 16 hexadecimal
values, followed by 16 ASCII characters.
NUL
-terminated.NUL
-terminated character string that
will be prepended to each line of output. A value of
NULL
implies that no header will be printed.HD_OMIT_COUNT
HD_OMIT_HEX
HD_OMIT_CHARS
This manual page was written by Scott Long.
December 7, 2003 | Debian |