Research V7 development
[unix-history] / usr / man / man3 / swab.3
CommitLineData
bd47a035
DR
1.TH SWAB 3
2.SH NAME
3swab \- swap bytes
4.SH SYNOPSIS
5.B swab(from, to, nbytes)
6.br
7.B char *from, *to;
8.SH DESCRIPTION
9.I Swab
10copies
11.I nbytes
12bytes pointed to by
13.I from
14to the position pointed to by
15.I to,
16exchanging adjacent even and odd bytes.
17It is useful for carrying binary data between
18PDP11's and other machines.
19.I Nbytes
20should be even.