Commit | Line | Data |
---|---|---|
6a5edc3d C |
1 | .TH SWAB 3 "19 January 1983" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | swab \- 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 | |
12 | copies | |
13 | .I nbytes | |
14 | bytes pointed to by | |
15 | .I from | |
16 | to the position pointed to by | |
17 | .I to, | |
18 | exchanging adjacent even and odd bytes. | |
19 | It is useful for carrying binary data between | |
20 | PDP11's and other machines. | |
21 | .I Nbytes | |
22 | should be even. |