SWAB(3C) DOMAIN/IX SYS5 SWAB(3C)
NAME
swab - swap bytes
USAGE
void swab(from, to, nbytes)
char *from, *to;
int nbytes;
DESCRIPTION
Swab copies nbytes of the bytes that from points to into the
array that to specifies, exchanging adjacent even and odd
bytes. It is useful for carrying binary data between
machines. Nbytes should be an even number and non-negative.
If nbytes is odd and positive, swab uses nbytes-1 instead.
If nbytes is negative, swab does nothing.
Printed 12/4/86 SWAB-1