swab
Purpose
Copies bytes.
Library
Standard C Library (libc.a)
Syntax
void swab (from, to, nbytes)
char *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: " memccpy, memchr, memcmp, memcpy, memset,
bcopy" and "string."