148351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California. 242174Sbostic.\" All rights reserved. 320461Smckusick.\" 442174Sbostic.\" %sccs.include.redist.man% 542174Sbostic.\" 6*48898Ssellgren.\" @(#)swab.3 6.6 (Berkeley) 05/01/91 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 17*48898Ssellgren.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