Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH SWAB 3 |
2 | .SH NAME | |
3 | swab \- swap bytes | |
4 | .SH SYNOPSIS | |
5 | .B swab(from, to, nbytes) | |
6 | .br | |
7 | .B char *from, *to; | |
8 | .SH DESCRIPTION | |
9 | .I Swab | |
10 | copies | |
11 | .I nbytes | |
12 | bytes pointed to by | |
13 | .I from | |
14 | to the position pointed to by | |
15 | .I to, | |
16 | exchanging adjacent even and odd bytes. | |
17 | It is useful for carrying binary data between | |
18 | PDP11's and other machines. | |
19 | .I Nbytes | |
20 | should be even. |