aboutsummaryrefslogtreecommitdiff
path: root/local/src/doc/bswap.hlp
blob: 779105de63f785dc8d78b65c961b3f431f6c0a1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.help bswap Mar89 local
.ih
NAME
bswap - swap the bytes in a file
.ih
USAGE
bswap input output
.ih
PARAMETERS
.ls input
The file to be swapped.
.le
.ls output
The name of the output swapped file.
.le
.ls wordswap = no
Swap four-byte longwords rather than pairs of bytes.
.le
.ih
DESCRIPTION
The \fIbswap\fR task reads the input file as a binary file,
writing the result to the output file.
Successive byte pairs are interchanged if \fIwordswap\fR=no,
otherwise the four bytes within each successive longword are swapped.
.ih
EXAMPLES
1. Byte swap file A, writing the result to file B.

	cl> bswap a b
.ih
BUGS
The input and output files cannot be the same.
.ih
SEE ALSO
dataio.reblock
.endhelp