hexdump.9 (a61f15043cb6d4574e5c0d1ac0f0157aaaaa7614) hexdump.9 (d5a8819cb767682dbed8b6bd75a68f382c297603)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2003 Scott Long
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 26 unchanged lines hidden (view full) ---

35.Nm hexdump
36.Nd "Dump a block of bytes to the console in hexadecimal form"
37.Sh SYNOPSIS
38.In sys/systm.h
39.Ft void
40.Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags"
41.Sh DESCRIPTION
42Hexdump prints an array of bytes to the console in hexadecimal form, along with
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2003 Scott Long
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 26 unchanged lines hidden (view full) ---

35.Nm hexdump
36.Nd "Dump a block of bytes to the console in hexadecimal form"
37.Sh SYNOPSIS
38.In sys/systm.h
39.Ft void
40.Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags"
41.Sh DESCRIPTION
42Hexdump prints an array of bytes to the console in hexadecimal form, along with
43the ASCII representation of the bytes, if possible. By default, each line of
43the ASCII representation of the bytes, if possible.
44By default, each line of
44output will start with an offset count, followed by 16 hexadecimal values,
45followed by 16 ASCII characters.
46.Bl -tag -width 6n
47.It Fa ptr
45output will start with an offset count, followed by 16 hexadecimal values,
46followed by 16 ASCII characters.
47.Bl -tag -width 6n
48.It Fa ptr
48Pointer to the array of bytes to print. It does not need to be NULL-terminated.
49Pointer to the array of bytes to print.
50It does not need to be NULL-terminated.
49.It Fa length
50Number of bytes to print
51.It Fa hdr
52Pointer to a NULL-terminated character string that will be prepended to each
51.It Fa length
52Number of bytes to print
53.It Fa hdr
54Pointer to a NULL-terminated character string that will be prepended to each
53line of output. A value of NULL implies that no header will be printed.
55line of output.
56A value of NULL implies that no header will be printed.
54.It Fa flags
55Flags for controlling the formatting of the output
56.Bl -tag -width HD_OMIT_COUNT
57.It Fa Bits 0-7
57.It Fa flags
58Flags for controlling the formatting of the output
59.Bl -tag -width HD_OMIT_COUNT
60.It Fa Bits 0-7
58Integer value of the number of bytes to display on each line. A value of 0
59implies that the default value of 16 will be used.
61Integer value of the number of bytes to display on each line.
62A value of 0 implies that the default value of 16 will be used.
60.It Fa Bits 8-15
63.It Fa Bits 8-15
61Character ASCII value to use as the separator for the hexadecimal output. A
62value of 0 implies that the default value of 32 (ASCII space) will be used.
64Character ASCII value to use as the separator for the hexadecimal output.
65A value of 0 implies that the default value of 32 (ASCII space) will be used.
63.It Fa HD_OMIT_COUNT
64Don't print the offset column at the beginning of each line
65.It Fa HD_OMIT_HEX
66Don't print the hexadecimal values on each line.
67.It Fa HD_OMIT_CHARS
68Don't print the character values on each line.
69.El
70.El
71.Pp
72.Sh SEE ALSO
73.Xr ascii 7
74.Sh AUTHORS
75This man page was written by
76.An Scott Long .
66.It Fa HD_OMIT_COUNT
67Don't print the offset column at the beginning of each line
68.It Fa HD_OMIT_HEX
69Don't print the hexadecimal values on each line.
70.It Fa HD_OMIT_CHARS
71Don't print the character values on each line.
72.El
73.El
74.Pp
75.Sh SEE ALSO
76.Xr ascii 7
77.Sh AUTHORS
78This man page was written by
79.An Scott Long .