SWAB(3)
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 LSI 11’s and other machines. Nbytes should be even.
SEE ALSO
hs2net(3) hl2net(3), net2hl(3), net2hs(3)
December 01, 1986 — Xinu Programmer’s Manual