summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8c41cf3)
SCCS-vsn: lib/libc/string/swab.3 4.1
--- /dev/null
+.\" @(#)swab.3 4.1 (Berkeley) %G%
+.\"
+.TH SWAB 3
+.AT 3
+.SH NAME
+swab \- swap bytes
+.SH SYNOPSIS
+.nf
+.B swab(from, to, nbytes)
+.B char *from, *to;
+.fi
+.SH DESCRIPTION
+.I Swab
+copies
+.I nbytes
+bytes pointed to by
+.I from
+to the position pointed to by
+.I to,
+exchanging adjacent even and odd bytes.
+It is useful for carrying binary data between
+PDP11's and other machines.
+.I Nbytes
+should be even.