blob: 244416ebfa33c8b1e5ff9ef06ba4a12d2ae4defe (
plain)
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
37
38
39
|
############################################################################
#
# File: fixhqx.icn
#
# Subject: Program to strip headers from BinHex files
#
# Author: Ralph E. Griswold
#
# Date: February 20, 1994
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# Sometimes Macintosh .hqx files come with commentary before the
# BinHex data. This program strips off the heading material so that
# BinHex can be used.
#
# Input comes from standard input and output goes to standard output.
#
############################################################################
procedure main()
local line
while line := read() do
line ? {
if ="(This file must be converted with BinHex 4.0)" then {
write(line)
break
}
else write(&errout, line)
}
while write(read())
end
|