SWAB(3C) DOMAIN/IX Reference Manual (SYS5) SWAB(3C)
NAME
swab - swap bytes
USAGE
void swab (from, to, nbytes)
char *from, *to;
int nbytes;
DESCRIPTION
Swab copies number of bytes (nbytes) 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 5/10/85 SWAB-1