SWAB(3,L) AIX Technical Reference SWAB(3,L) ------------------------------------------------------------------------------- swab PURPOSE Copies bytes. LIBRARY Standard C Library (libc.a) SYNTAX void swab (from, to, nbytes) short *from, *to; int nbytes; DESCRIPTION The swab subroutine copies nbytes bytes from the location pointed to by the from parameter to the array pointed to by the to parameter, exchanging adjacent even and odd bytes. The nbytes parameter should be even and nonnegative. If the nbytes parameter is odd and positive, the swab uses nbytes-1 instead. If the nbytes parameter is negative, then swab does nothing. RELATED INFORMATION In this book: "memory: memccpy, memchr, memcmp, memcpy, memset, bcopy" and "string." Processed November 7, 1990 SWAB(3,L) 1