From 55ccc74b1380deabd586a0f2d3bc55a4b024c458 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Wed, 15 May 1985 22:53:26 -0800 Subject: [PATCH] manual page distributed with 4.1BSD SCCS-vsn: lib/libc/string/swab.3 4.1 --- usr/src/lib/libc/string/swab.3 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 usr/src/lib/libc/string/swab.3 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. -- 2.20.1