From: Kirk McKusick Date: Thu, 16 May 1985 06:53:26 +0000 (-0800) Subject: manual page distributed with 4.1BSD X-Git-Tag: BSD-4_3-Snapshot-Development~6711 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/55ccc74b1380deabd586a0f2d3bc55a4b024c458?ds=inline manual page distributed with 4.1BSD SCCS-vsn: lib/libc/string/swab.3 4.1 --- diff --git a/usr/src/lib/libc/string/swab.3 b/usr/src/lib/libc/string/swab.3 new file mode 100644 index 0000000000..4328ad9b0c --- /dev/null +++ b/usr/src/lib/libc/string/swab.3 @@ -0,0 +1,24 @@ +.\" @(#)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.