Commit | Line | Data |
---|---|---|
95f51977 | 1 | .\" @(#)swab.3 6.1 (Berkeley) 5/15/85 |
55ccc74b | 2 | .\" |
95f51977 | 3 | .TH SWAB 3 "May 15, 1985" |
55ccc74b | 4 | .AT 3 |
f2278032 | 5 | .nf |
55ccc74b KM |
6 | .SH NAME |
7 | swab \- swap bytes | |
8 | .SH SYNOPSIS | |
9 | .nf | |
10 | .B swab(from, to, nbytes) | |
11 | .B char *from, *to; | |
12 | .fi | |
13 | .SH DESCRIPTION | |
14 | .I Swab | |
15 | copies | |
16 | .I nbytes | |
17 | bytes pointed to by | |
18 | .I from | |
19 | to the position pointed to by | |
20 | .I to, | |
21 | exchanging adjacent even and odd bytes. | |
22 | It is useful for carrying binary data between | |
23 | PDP11's and other machines. | |
24 | .I Nbytes | |
25 | should be even. |