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