aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/hexdump.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/hexdump.3')
-rw-r--r--lib/libutil/hexdump.319
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/libutil/hexdump.3 b/lib/libutil/hexdump.3
index 8e997ac24b4d..9fa96f899f95 100644
--- a/lib/libutil/hexdump.3
+++ b/lib/libutil/hexdump.3
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 1, 2008
+.Dd May 8, 2014
.Dt HEXDUMP 3
.Os
.Sh NAME
@@ -36,8 +36,17 @@
.Nd "dump a block of bytes to standard out in hexadecimal form"
.Sh SYNOPSIS
.In libutil.h
+.In sys/sbuf.h
.Ft void
.Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags"
+.Ft void
+.Fo sbuf_hexdump
+.Fa "struct sbuf *sb"
+.Fa "void *ptr"
+.Fa "int length"
+.Fa "const char *hdr"
+.Fa "int flags"
+.Fc
.Sh DESCRIPTION
The
.Fn hexdump
@@ -50,6 +59,11 @@ output will start with an offset count, followed by 16 hexadecimal values,
followed by 16
.Tn ASCII
characters.
+.Pp
+The
+.Fn sbuf_hexdump
+function prints the hexdump to the supplied
+.Xr sbuf 9 .
.Bl -tag -width indent
.It Fa ptr
Pointer to the array of bytes to print.
@@ -88,7 +102,8 @@ Do not print the character values on each line.
.El
.El
.Sh SEE ALSO
-.Xr ascii 7
+.Xr ascii 7 ,
+.Xr sbuf 9
.Sh AUTHORS
This manual page was written by
.An Scott Long .