1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61193Sbostic.\" The Regents of the University of California. All rights reserved. 320461Smckusick.\" 442174Sbostic.\" %sccs.include.redist.man% 542174Sbostic.\" 6*61193Sbostic.\" @(#)swab.3 8.1 (Berkeley) 06/04/93 742174Sbostic.\" 848351Scael.Dd 948351Scael.Dt SWAB 3 1048351Scael.Os 1148351Scael.Sh NAME 1248351Scael.Nm swab 1348351Scael.Nd swap adjacent bytes 1448351Scael.Sh SYNOPSIS 1548351Scael.Fd #include <string.h> 1648351Scael.Ft void 1748898Ssellgren.Fn swab "const void *src" "void *dst" "size_t len" 1848351Scael.Sh DESCRIPTION 1942174SbosticThe function 2048351Scael.Fn swab 2120461Smckusickcopies 2248351Scael.Fa len 2342174Sbosticbytes from the location referenced by 2448351Scael.Fa src 2542174Sbosticto the location referenced by 2648351Scael.Fa dst , 2742174Sbosticswapping adjacent bytes. 2848351Scael.Pp 2948351ScaelThe argument 3048351Scael.Fa len 3148351Scaelmust be even number. 3248351Scael.Sh SEE ALSO 3348351Scael.Xr bzero 3 , 3448351Scael.Xr memset 3 3548351Scael.Sh HISTORY 3648351ScaelA 3748351Scael.Fn swab 3848351Scaelfunction appeared in 3948351Scael.At v7 . 40