HEXDUMP(3) | MidnightBSD Library Functions Manual | HEXDUMP(3) |
hexdump
— dump a
block of bytes to standard out in hexadecimal form
#include
<libutil.h>
void
hexdump
(void
*ptr, int length,
const char *hdr,
int flags);
The
hexdump
()
function prints an array of bytes to standard out 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
The hexdump
() function first appeared in
FreeBSD 6.4.
This manual page was written by Scott Long.
May 8, 2020 | midnightbsd-3.1 |