swab(3)
NAME
swab − swap bytes
SYNTAX
swab(from, to, nbytes)
char *from, *to;
DESCRIPTION
The swab subroutine 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. The nbytes should be even.