|
|
1.1 root 1: .\" @(#)swab.3 6.1 (Berkeley) 5/15/85
2: .\"
3: .TH SWAB 3 "May 15, 1985"
4: .AT 3
5: .nf
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.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.