SWAB(3-BSD) RISC/os Reference Manual SWAB(3-BSD)
NAME
swab - swap bytes
SYNOPSIS
swab(from, to, nbytes)
char *from, *to;
DESCRIPTION
swab copies nbytes bytes pointed to by from to the position
pointed to by to, exchanging adjacent even and odd bytes.
It is useful for carrying binary data between PDP11's and
other machines. nbytes should be even.
Printed 1/15/91 Page 1