From owner-man-jp-reviewer@jp.freebsd.org  Mon Sep 10 11:49:44 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id LAA02338;
	Mon, 10 Sep 2001 11:49:44 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from tatesina.phys.s.u-tokyo.ac.jp (tatesina.phys.s.u-tokyo.ac.jp [133.11.4.240])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id LAA02333
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 10 Sep 2001 11:49:44 +0900 (JST)
	(envelope-from koizumi@cms.phys.s.u-tokyo.ac.jp)
Received: from mail-cms (cms-as3.phys.s.u-tokyo.ac.jp [133.11.4.6])
	by tatesina.phys.s.u-tokyo.ac.jp (8.11.6/3.7W) with ESMTP id f8A2niu69227
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 10 Sep 2001 11:49:44 +0900 (JST)
Message-Id: <200109100249.f8A2niu69227@tatesina.phys.s.u-tokyo.ac.jp>
To: man-jp-reviewer@jp.freebsd.org
Date: Mon, 10 Sep 2001 11:49:44 +0900
From: Satoru Koizumi <koizumi@cms.phys.s.u-tokyo.ac.jp>
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: man-jp-reviewer 3785
Subject: [man-jp-reviewer 3785] swab.3
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: koizumi@cms.phys.s.u-tokyo.ac.jp


 swab.3 $B$G$9!#%A%'%C%/$h$m$7$/$*4j$$$7$^$9!#(B

                            $B>.(B  $B@t(B    $B8g(B

----------------------------------------------------
.\" Copyright (c) 1990, 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)swab.3	8.1 (Berkeley) 6/4/93
.\" $FreeBSD: src/lib/libc/string/swab.3,v 1.4.2.1 2000/04/22 17:06:42 phantom Exp $
.\"
.Dd June 4, 1993
.Dt SWAB 3
.Os
.Sh $BL>>N(B
.Nm swab
.Nd swap adjacent bytes
.Sh LIBRARY
.Lb libc
.Sh $B=q<0(B
.Fd #include <string.h>
.Ft void
.Fn swab "const void *src" "void *dst" "size_t len"
.Sh $B2r@b(B
$B4X?t(B
.Fn swab
$B$O(B
.Fa src
$B$G;2>H$5$l$k0LCV$+$i(B
.Fa dst
$B$G;2>H$5$l$k0LCV$X!"(B
$BNY@\$9$k%P%$%H$r8r49$7$J$,$i(B
.Fa len
$B%P%$%H$r%3%T!<$7$^$9!#(B
.Pp
$B0z?t(B
.Fa len
$B$O6v?t$G$J$1$l$P$J$j$^$;$s!#(B
.Sh $B4XO"9`L\(B
.Xr bzero 3 ,
.Xr memset 3
.Sh $BNr;K(B
.Fn swab
$B4X?t$O(B
.At v7
$B$GEP>l$7$^$7$?!#(B
