home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
You can browse this item here: ifs.code
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From albanycs!leah:rsb584 Wed Jan 27 00:56:12 1988", ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 61 6c 62 | 61 6e 79 63 73 21 6c 65 |From alb|anycs!le|
|00000010| 61 68 3a 72 73 62 35 38 | 34 20 57 65 64 20 4a 61 |ah:rsb58|4 Wed Ja|
|00000020| 6e 20 32 37 20 30 30 3a | 35 36 3a 31 32 20 31 39 |n 27 00:|56:12 19|
|00000030| 38 38 0a 52 65 63 65 69 | 76 65 64 3a 20 62 79 20 |88.Recei|ved: by |
|00000040| 61 6c 62 61 6e 79 63 73 | 2e 61 6c 62 61 6e 79 2e |albanycs|.albany.|
|00000050| 65 64 75 20 28 35 2e 35 | 34 2f 34 2e 38 29 0a 09 |edu (5.5|4/4.8)..|
|00000060| 69 64 20 41 41 32 38 33 | 39 34 3b 20 54 75 65 2c |id AA283|94; Tue,|
|00000070| 20 32 36 20 4a 61 6e 20 | 38 38 20 32 33 3a 35 39 | 26 Jan |88 23:59|
|00000080| 3a 32 30 20 45 53 54 0a | 44 61 74 65 3a 20 54 75 |:20 EST.|Date: Tu|
|00000090| 65 2c 20 32 36 20 4a 61 | 6e 20 38 38 20 32 33 3a |e, 26 Ja|n 88 23:|
|000000a0| 35 39 3a 31 34 20 45 53 | 54 0a 46 72 6f 6d 3a 20 |59:14 ES|T.From: |
|000000b0| 61 6c 62 61 6e 79 63 73 | 21 6c 65 61 68 3a 72 73 |albanycs|!leah:rs|
|000000c0| 62 35 38 34 20 28 52 61 | 79 6d 6f 6e 64 20 53 20 |b584 (Ra|ymond S |
|000000d0| 42 72 61 6e 64 29 0a 52 | 65 63 65 69 76 65 64 3a |Brand).R|eceived:|
|000000e0| 20 62 79 20 6c 65 61 68 | 2e 41 6c 62 61 6e 79 2e | by leah|.Albany.|
|000000f0| 45 44 55 20 28 35 2e 35 | 38 2f 31 2e 31 29 0a 09 |EDU (5.5|8/1.1)..|
|00000100| 69 64 20 41 41 31 39 38 | 33 37 3b 20 54 75 65 2c |id AA198|37; Tue,|
|00000110| 20 32 36 20 4a 61 6e 20 | 38 38 20 32 33 3a 35 39 | 26 Jan |88 23:59|
|00000120| 3a 31 34 20 45 53 54 0a | 4d 65 73 73 61 67 65 2d |:14 EST.|Message-|
|00000130| 49 64 3a 20 3c 38 38 30 | 31 32 37 30 34 35 39 2e |Id: <880|1270459.|
|00000140| 41 41 31 39 38 33 37 40 | 6c 65 61 68 2e 41 6c 62 |AA19837@|leah.Alb|
|00000150| 61 6e 79 2e 45 44 55 3e | 0a 54 6f 3a 20 61 6c 62 |any.EDU>|.To: alb|
|00000160| 61 6e 79 63 73 3a 62 65 | 6f 77 75 6c 66 21 72 73 |anycs:be|owulf!rs|
|00000170| 62 78 0a 0a 3e 46 72 6f | 6d 20 61 68 67 40 6b 2e |bx..>Fro|m ahg@k.|
|00000180| 63 63 2e 70 75 72 64 75 | 65 2e 65 64 75 20 53 75 |cc.purdu|e.edu Su|
|00000190| 6e 20 4a 61 6e 20 32 34 | 20 31 34 3a 35 34 3a 32 |n Jan 24| 14:54:2|
|000001a0| 31 20 31 39 38 38 0a 50 | 61 74 68 3a 20 6c 65 61 |1 1988.P|ath: lea|
|000001b0| 68 21 69 74 73 67 77 21 | 6e 79 73 65 72 6e 69 63 |h!itsgw!|nysernic|
|000001c0| 21 72 75 74 67 65 72 73 | 21 70 72 69 6e 63 65 74 |!rutgers|!princet|
|000001d0| 6f 6e 21 75 64 65 6c 21 | 67 61 74 65 63 68 21 70 |on!udel!|gatech!p|
|000001e0| 75 72 64 75 65 21 69 2e | 63 63 2e 70 75 72 64 75 |urdue!i.|cc.purdu|
|000001f0| 65 2e 65 64 75 21 6a 2e | 63 63 2e 70 75 72 64 75 |e.edu!j.|cc.purdu|
|00000200| 65 2e 65 64 75 21 6b 2e | 63 63 2e 70 75 72 64 75 |e.edu!k.|cc.purdu|
|00000210| 65 2e 65 64 75 21 61 68 | 67 0a 46 72 6f 6d 3a 20 |e.edu!ah|g.From: |
|00000220| 61 68 67 40 6b 2e 63 63 | 2e 70 75 72 64 75 65 2e |ahg@k.cc|.purdue.|
|00000230| 65 64 75 20 28 41 6c 6c | 65 6e 20 42 72 61 75 6e |edu (All|en Braun|
|00000240| 73 64 6f 72 66 29 0a 4e | 65 77 73 67 72 6f 75 70 |sdorf).N|ewsgroup|
|00000250| 73 3a 20 63 6f 6d 70 2e | 67 72 61 70 68 69 63 73 |s: comp.|graphics|
|00000260| 0a 53 75 62 6a 65 63 74 | 3a 20 28 53 6f 75 72 63 |.Subject|: (Sourc|
|00000270| 65 20 61 6e 64 20 74 65 | 73 74 20 64 61 74 61 20 |e and te|st data |
|00000280| 66 6f 72 29 20 49 46 53 | 20 45 78 70 6c 6f 72 65 |for) IFS| Explore|
|00000290| 72 20 31 2e 30 0a 4b 65 | 79 77 6f 72 64 73 3a 20 |r 1.0.Ke|ywords: |
|000002a0| 62 79 20 70 6f 70 75 6c | 61 72 20 64 65 6d 61 6e |by popul|ar deman|
|000002b0| 64 20 20 66 61 73 63 69 | 6e 61 74 69 6e 67 20 70 |d fasci|nating p|
|000002c0| 69 63 74 75 72 65 73 20 | 20 6e 65 77 20 74 6f 79 |ictures | new toy|
|000002d0| 73 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 32 |s.Messag|e-ID: <2|
|000002e0| 33 35 33 40 6b 2e 63 63 | 2e 70 75 72 64 75 65 2e |353@k.cc|.purdue.|
|000002f0| 65 64 75 3e 0a 44 61 74 | 65 3a 20 32 34 20 4a 61 |edu>.Dat|e: 24 Ja|
|00000300| 6e 20 38 38 20 31 39 3a | 35 34 3a 32 31 20 47 4d |n 88 19:|54:21 GM|
|00000310| 54 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|00000320| 33 2d 44 20 43 6f 6d 70 | 75 74 65 72 20 47 72 61 |3-D Comp|uter Gra|
|00000330| 70 68 69 63 73 20 46 72 | 6f 6d 20 48 65 6c 6c 0a |phics Fr|om Hell.|
|00000340| 4c 69 6e 65 73 3a 20 38 | 32 32 0a 0a 0a 53 69 6e |Lines: 8|22...Sin|
|00000350| 63 65 20 6d 79 20 70 6f | 73 74 69 6e 67 2c 20 49 |ce my po|sting, I|
|00000360| 20 68 61 76 65 20 72 65 | 63 65 69 76 65 64 20 61 | have re|ceived a|
|00000370| 62 6f 75 74 20 66 69 66 | 74 79 20 72 65 71 75 65 |bout fif|ty reque|
|00000380| 73 74 73 20 66 6f 72 20 | 74 68 65 20 73 6f 75 72 |sts for |the sour|
|00000390| 63 65 20 74 6f 0a 6d 79 | 20 70 72 6f 67 72 61 6d |ce to.my| program|
|000003a0| 2e 20 20 49 20 61 6c 73 | 6f 20 72 65 63 65 69 76 |. I als|o receiv|
|000003b0| 65 64 20 61 20 66 65 77 | 20 6e 6f 74 65 73 20 66 |ed a few| notes f|
|000003c0| 72 6f 6d 20 70 65 6f 70 | 6c 65 20 6c 6f 6f 6b 69 |rom peop|le looki|
|000003d0| 6e 67 20 66 6f 72 20 63 | 6f 6d 70 72 65 73 73 69 |ng for c|ompressi|
|000003e0| 6f 6e 0a 73 6f 66 74 77 | 61 72 65 2e 20 20 55 6e |on.softw|are. Un|
|000003f0| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 20 49 20 64 |fortunat|ely, I d|
|00000400| 6f 20 6e 6f 74 20 79 65 | 74 20 68 61 76 65 20 73 |o not ye|t have s|
|00000410| 75 63 68 20 61 20 70 72 | 6f 67 72 61 6d 20 64 6f |uch a pr|ogram do|
|00000420| 6e 65 2e 0a 0a 42 65 6c | 6f 77 20 69 73 20 74 68 |ne...Bel|ow is th|
|00000430| 65 20 73 6f 75 72 63 65 | 20 74 6f 20 74 68 65 20 |e source| to the |
|00000440| 6c 61 74 65 73 74 20 76 | 65 72 73 69 6f 6e 20 6f |latest v|ersion o|
|00000450| 66 20 6d 79 20 64 65 63 | 6f 6d 70 72 65 73 73 69 |f my dec|ompressi|
|00000460| 6f 6e 20 70 72 6f 67 72 | 61 6d 2e 20 20 49 74 0a |on progr|am. It.|
|00000470| 69 73 20 61 20 77 6f 6e | 64 65 72 66 75 6c 20 77 |is a won|derful w|
|00000480| 61 79 20 74 6f 20 74 72 | 79 20 6f 75 74 20 74 72 |ay to tr|y out tr|
|00000490| 61 6e 73 66 6f 72 6d 73 | 20 6a 75 73 74 20 74 6f |ansforms| just to|
|000004a0| 20 73 65 65 20 77 68 61 | 74 20 74 68 65 79 20 64 | see wha|t they d|
|000004b0| 6f 2e 20 20 49 74 27 73 | 20 61 0a 6c 69 74 74 6c |o. It's| a.littl|
|000004c0| 65 20 72 6f 75 67 68 2c | 20 61 6e 64 20 74 68 65 |e rough,| and the|
|000004d0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 69 | documen|tation i|
|000004e0| 73 20 61 20 68 61 63 6b | 20 6a 6f 62 2c 20 62 75 |s a hack| job, bu|
|000004f0| 74 20 49 20 61 6d 20 73 | 75 72 65 20 6d 61 6e 79 |t I am s|ure many|
|00000500| 20 6f 66 20 79 6f 75 0a | 77 69 6c 6c 20 66 69 6e | of you.|will fin|
|00000510| 64 20 69 74 20 69 6e 74 | 65 72 65 73 74 69 6e 67 |d it int|eresting|
|00000520| 20 6f 72 20 75 73 65 66 | 75 6c 2e 0a 0a 41 6c 73 | or usef|ul...Als|
|00000530| 6f 20 69 6e 63 6c 75 64 | 65 64 20 61 72 65 20 74 |o includ|ed are t|
|00000540| 68 65 20 64 61 74 61 20 | 66 69 6c 65 73 20 66 72 |he data |files fr|
|00000550| 6f 6d 20 74 68 65 20 42 | 79 74 65 20 61 72 74 69 |om the B|yte arti|
|00000560| 63 6c 65 20 28 6e 6f 72 | 6d 61 6c 69 7a 65 64 20 |cle (nor|malized |
|00000570| 74 6f 20 77 6f 72 6b 20 | 69 6e 0a 6d 79 20 73 79 |to work |in.my sy|
|00000580| 73 74 65 6d 29 20 61 6e | 64 20 61 20 66 65 77 20 |stem) an|d a few |
|00000590| 6f 66 20 6d 79 20 6f 77 | 6e 2e 20 20 49 20 63 61 |of my ow|n. I ca|
|000005a0| 6e 20 70 6f 73 74 20 69 | 6e 66 6f 72 6d 61 74 69 |n post i|nformati|
|000005b0| 6f 6e 20 6f 6e 20 68 6f | 77 20 74 6f 20 6d 61 6b |on on ho|w to mak|
|000005c0| 65 20 79 6f 75 72 0a 6f | 77 6e 20 64 61 74 61 20 |e your.o|wn data |
|000005d0| 66 69 6c 65 73 20 69 66 | 20 74 68 65 72 65 20 69 |files if| there i|
|000005e0| 73 20 61 20 64 65 6d 61 | 6e 64 2e 0a 0a 49 66 20 |s a dema|nd...If |
|000005f0| 61 6e 79 20 6f 66 20 79 | 6f 75 20 6d 61 6b 65 20 |any of y|ou make |
|00000600| 73 6f 6d 65 20 6e 65 61 | 74 20 6f 6e 65 73 2c 20 |some nea|t ones, |
|00000610| 62 65 20 73 75 72 65 20 | 74 6f 20 70 6f 73 74 20 |be sure |to post |
|00000620| 74 68 65 6d 20 6f 72 20 | 73 65 6e 64 20 74 68 65 |them or |send the|
|00000630| 6d 20 74 6f 20 6d 65 21 | 0a 0a 23 09 54 68 69 73 |m to me!|..#.This|
|00000640| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|00000650| 69 76 65 2e 0a 23 09 52 | 65 6d 6f 76 65 20 65 76 |ive..#.R|emove ev|
|00000660| 65 72 79 74 68 69 6e 67 | 20 61 62 6f 76 65 20 61 |erything| above a|
|00000670| 6e 64 20 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |nd inclu|ding the|
|00000680| 20 63 75 74 20 6c 69 6e | 65 2e 0a 23 09 54 68 65 | cut lin|e..#.The|
|00000690| 6e 20 72 75 6e 20 74 68 | 65 20 72 65 73 74 20 6f |n run th|e rest o|
|000006a0| 66 20 74 68 65 20 66 69 | 6c 65 20 74 68 72 6f 75 |f the fi|le throu|
|000006b0| 67 68 20 73 68 2e 0a 23 | 2d 2d 2d 2d 63 75 74 20 |gh sh..#|----cut |
|000006c0| 68 65 72 65 2d 2d 2d 2d | 2d 63 75 74 20 68 65 72 |here----|-cut her|
|000006d0| 65 2d 2d 2d 2d 2d 63 75 | 74 20 68 65 72 65 2d 2d |e-----cu|t here--|
|000006e0| 2d 2d 2d 63 75 74 20 68 | 65 72 65 2d 2d 2d 2d 23 |---cut h|ere----#|
|000006f0| 0a 23 21 2f 62 69 6e 2f | 73 68 0a 23 20 73 68 61 |.#!/bin/|sh.# sha|
|00000700| 72 3a 09 53 68 65 6c 6c | 20 41 72 63 68 69 76 65 |r:.Shell| Archive|
|00000710| 72 0a 23 09 52 75 6e 20 | 74 68 65 20 66 6f 6c 6c |r.#.Run |the foll|
|00000720| 6f 77 69 6e 67 20 74 65 | 78 74 20 77 69 74 68 20 |owing te|xt with |
|00000730| 2f 62 69 6e 2f 73 68 20 | 74 6f 20 63 72 65 61 74 |/bin/sh |to creat|
|00000740| 65 3a 0a 23 09 52 45 41 | 44 4d 45 0a 23 09 4d 61 |e:.#.REA|DME.#.Ma|
|00000750| 6b 65 66 69 6c 65 0a 23 | 09 64 65 76 2e 68 0a 23 |kefile.#|.dev.h.#|
|00000760| 09 69 66 73 2e 68 0a 23 | 09 72 6e 64 2e 68 0a 23 |.ifs.h.#|.rnd.h.#|
|00000770| 09 69 66 73 2e 63 0a 23 | 09 61 2e 69 66 73 0a 23 |.ifs.c.#|.a.ifs.#|
|00000780| 09 61 72 63 68 69 6d 65 | 64 65 73 2e 69 66 73 0a |.archime|des.ifs.|
|00000790| 23 09 62 6f 78 2e 69 66 | 73 0a 23 09 62 6f 78 65 |#.box.if|s.#.boxe|
|000007a0| 73 2e 69 66 73 0a 23 09 | 63 69 72 63 6c 65 2e 69 |s.ifs.#.|circle.i|
|000007b0| 66 73 0a 23 09 63 72 6f | 73 73 2e 69 66 73 0a 23 |fs.#.cro|ss.ifs.#|
|000007c0| 09 64 72 61 67 6f 6e 2e | 69 66 73 0a 23 09 66 65 |.dragon.|ifs.#.fe|
|000007d0| 72 6e 2e 69 66 73 0a 23 | 09 72 69 6e 67 2e 69 66 |rn.ifs.#|.ring.if|
|000007e0| 73 0a 23 09 73 69 65 72 | 70 69 6e 73 6b 69 2e 69 |s.#.sier|pinski.i|
|000007f0| 66 73 0a 23 09 73 71 75 | 61 72 65 2e 69 66 73 0a |fs.#.squ|are.ifs.|
|00000800| 23 09 73 74 61 72 2e 69 | 66 73 0a 23 09 74 72 65 |#.star.i|fs.#.tre|
|00000810| 65 2e 69 66 73 0a 23 09 | 74 72 69 61 6e 67 6c 65 |e.ifs.#.|triangle|
|00000820| 2e 69 66 73 0a 23 20 54 | 68 69 73 20 61 72 63 68 |.ifs.# T|his arch|
|00000830| 69 76 65 20 63 72 65 61 | 74 65 64 3a 20 53 75 6e |ive crea|ted: Sun|
|00000840| 20 4a 61 6e 20 32 34 20 | 31 34 3a 34 35 3a 32 34 | Jan 24 |14:45:24|
|00000850| 20 31 39 38 38 0a 23 20 | 42 79 3a 09 41 6c 6c 65 | 1988.# |By:.Alle|
|00000860| 6e 20 42 72 61 75 6e 73 | 64 6f 72 66 20 28 33 2d |n Brauns|dorf (3-|
|00000870| 44 20 43 6f 6d 70 75 74 | 65 72 20 47 72 61 70 68 |D Comput|er Graph|
|00000880| 69 63 73 20 46 72 6f 6d | 20 48 65 6c 6c 29 0a 65 |ics From| Hell).e|
|00000890| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|000008a0| 74 69 6e 67 20 52 45 41 | 44 4d 45 20 27 28 36 39 |ting REA|DME '(69|
|000008b0| 33 33 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |33 chara|cters)'.|
|000008c0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|000008d0| 20 3e 20 52 45 41 44 4d | 45 0a 49 46 53 20 45 78 | > READM|E.IFS Ex|
|000008e0| 70 6c 6f 72 65 72 20 31 | 2e 30 09 28 43 29 31 39 |plorer 1|.0.(C)19|
|000008f0| 38 38 20 62 79 20 41 6c | 6c 65 6e 20 42 72 61 75 |88 by Al|len Brau|
|00000900| 6e 73 64 6f 72 66 20 28 | 61 68 67 40 6b 2e 63 63 |nsdorf (|ahg@k.cc|
|00000910| 2e 70 75 72 64 75 65 2e | 65 64 75 29 0a 0a 54 68 |.purdue.|edu)..Th|
|00000920| 69 73 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 20 69 |is progr|am and i|
|00000930| 74 73 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |ts docum|entation|
|00000940| 20 6d 61 79 20 62 65 20 | 66 72 65 65 6c 79 20 63 | may be |freely c|
|00000950| 6f 70 69 65 64 20 61 6e | 64 20 64 69 73 74 72 69 |opied an|d distri|
|00000960| 62 75 74 65 64 20 66 6f | 72 0a 6e 6f 6e 70 72 6f |buted fo|r.nonpro|
|00000970| 66 69 74 20 75 73 65 73 | 2e 0a 0a 0a 49 2e 20 49 |fit uses|....I. I|
|00000980| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 0a 0a 09 54 68 |ntroduct|ion...Th|
|00000990| 69 73 20 70 72 6f 67 72 | 61 6d 20 64 65 63 6f 64 |is progr|am decod|
|000009a0| 65 73 20 69 74 65 72 61 | 74 65 64 20 66 75 6e 63 |es itera|ted func|
|000009b0| 74 69 6f 6e 20 73 79 73 | 74 65 6d 73 20 28 49 46 |tion sys|tems (IF|
|000009c0| 53 73 29 20 69 6e 74 6f | 20 70 69 63 74 75 72 65 |Ss) into| picture|
|000009d0| 73 0a 62 79 20 75 73 69 | 6e 67 20 74 68 65 20 55 |s.by usi|ng the U|
|000009e0| 4e 49 58 28 74 72 61 64 | 65 6d 61 72 6b 20 6f 66 |NIX(trad|emark of|
|000009f0| 20 41 54 26 54 20 42 65 | 6c 6c 20 4c 61 62 6f 72 | AT&T Be|ll Labor|
|00000a00| 61 74 6f 72 69 65 73 29 | 20 64 65 76 69 63 65 20 |atories)| device |
|00000a10| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 70 6c 6f 74 |independ|ent plot|
|00000a20| 0a 6c 69 62 72 61 72 69 | 65 73 2e 20 20 49 74 20 |.librari|es. It |
|00000a30| 69 73 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 62 |is desig|ned to b|
|00000a40| 65 20 73 69 6d 70 6c 65 | 20 74 6f 20 69 6e 73 74 |e simple| to inst|
|00000a50| 61 6c 6c 20 61 6e 64 20 | 75 73 65 2c 20 79 65 74 |all and |use, yet|
|00000a60| 20 62 65 20 70 6f 77 65 | 72 66 75 6c 0a 61 6e 64 | be powe|rful.and|
|00000a70| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 20 65 6e 6f | interes|ting eno|
|00000a80| 75 67 68 20 69 6e 74 72 | 6f 64 75 63 65 20 74 68 |ugh intr|oduce th|
|00000a90| 65 20 75 73 65 72 20 74 | 6f 20 74 68 69 73 20 66 |e user t|o this f|
|00000aa0| 61 73 63 69 6e 61 74 69 | 6e 67 20 6e 65 77 20 62 |ascinati|ng new b|
|00000ab0| 72 61 6e 63 68 20 6f 66 | 0a 6d 61 74 68 65 6d 61 |ranch of|.mathema|
|00000ac0| 74 69 63 73 2e 0a 0a 49 | 49 2e 20 49 6e 73 74 61 |tics...I|I. Insta|
|00000ad0| 6c 6c 61 74 69 6f 6e 0a | 0a 09 49 66 20 79 6f 75 |llation.|..If you|
|00000ae0| 20 64 6f 20 6e 6f 74 20 | 68 61 76 65 20 74 68 65 | do not |have the|
|00000af0| 20 70 6c 6f 74 20 6c 69 | 62 72 61 72 79 20 61 76 | plot li|brary av|
|00000b00| 61 69 6c 61 62 6c 65 2c | 20 79 6f 75 20 77 69 6c |ailable,| you wil|
|00000b10| 6c 20 6e 65 65 64 20 74 | 6f 0a 72 65 77 72 69 74 |l need t|o.rewrit|
|00000b20| 65 20 74 68 65 20 67 72 | 61 70 68 69 63 20 70 61 |e the gr|aphic pa|
|00000b30| 72 74 73 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |rts of t|he progr|
|00000b40| 61 6d 2e 20 20 49 66 20 | 74 68 69 73 20 63 61 6e |am. If |this can|
|00000b50| 20 62 65 20 64 6f 6e 65 | 20 67 72 61 63 65 66 75 | be done| gracefu|
|00000b60| 6c 6c 79 0a 28 69 65 3a | 20 77 69 74 68 6f 75 74 |lly.(ie:| without|
|00000b70| 20 64 69 73 74 75 72 62 | 69 6e 67 20 61 20 6c 61 | disturb|ing a la|
|00000b80| 72 67 65 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |rge port|ion of t|
|00000b90| 68 65 20 63 6f 64 65 29 | 2c 20 49 20 77 6f 75 6c |he code)|, I woul|
|00000ba0| 64 20 62 65 20 69 6e 74 | 65 72 65 73 74 65 64 20 |d be int|erested |
|00000bb0| 69 6e 0a 79 6f 75 72 20 | 70 61 74 63 68 65 73 2c |in.your |patches,|
|00000bc0| 20 61 73 20 74 68 65 79 | 20 77 6f 75 6c 64 20 6c | as they| would l|
|00000bd0| 69 6b 65 6c 79 20 62 65 | 20 6f 66 20 75 73 65 20 |ikely be| of use |
|00000be0| 74 6f 20 6d 61 6e 79 20 | 70 65 6f 70 6c 65 2e 0a |to many |people..|
|00000bf0| 0a 09 49 66 20 79 6f 75 | 20 64 6f 20 68 61 76 65 |..If you| do have|
|00000c00| 20 74 68 65 20 70 6c 6f | 74 20 6c 69 62 72 61 72 | the plo|t librar|
|00000c10| 79 2c 20 6c 6f 6f 6b 20 | 74 68 72 6f 75 67 68 20 |y, look |through |
|00000c20| 74 68 65 20 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |the incl|ude file|
|00000c30| 0a 64 65 76 2e 68 20 66 | 6f 72 20 79 6f 75 72 20 |.dev.h f|or your |
|00000c40| 6f 75 74 70 75 74 20 64 | 65 76 69 63 65 2c 20 6f |output d|evice, o|
|00000c50| 72 20 6f 6e 65 20 73 69 | 6d 69 6c 61 72 2e 20 20 |r one si|milar. |
|00000c60| 49 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 66 69 6e |If you d|on't fin|
|00000c70| 64 20 69 74 2c 20 65 69 | 74 68 65 72 0a 6d 61 6b |d it, ei|ther.mak|
|00000c80| 65 20 75 70 20 61 20 64 | 65 66 69 6e 69 74 69 6f |e up a d|efinitio|
|00000c90| 6e 20 61 6e 64 20 61 64 | 64 20 69 74 20 74 6f 20 |n and ad|d it to |
|00000ca0| 64 65 76 2e 68 2c 20 6f | 72 20 73 65 74 20 22 44 |dev.h, o|r set "D|
|00000cb0| 45 56 20 3d 20 47 45 4e | 45 52 49 43 22 20 69 6e |EV = GEN|ERIC" in|
|00000cc0| 20 74 68 65 0a 4d 61 6b | 65 66 69 6c 65 2e 20 20 | the.Mak|efile. |
|00000cd0| 49 66 20 79 6f 75 20 64 | 6f 20 66 69 6e 64 20 69 |If you d|o find i|
|00000ce0| 74 20 28 6f 72 20 64 65 | 63 69 64 65 20 74 6f 20 |t (or de|cide to |
|00000cf0| 72 6f 6c 6c 20 79 6f 75 | 72 20 6f 77 6e 29 2c 20 |roll you|r own), |
|00000d00| 70 6c 61 63 65 20 74 68 | 65 0a 61 70 70 72 6f 70 |place th|e.approp|
|00000d10| 72 69 61 74 65 20 6e 61 | 6d 65 20 6f 6e 20 74 68 |riate na|me on th|
|00000d20| 65 20 22 44 45 56 20 3d | 20 22 20 6c 69 6e 65 20 |e "DEV =| " line |
|00000d30| 6f 66 20 74 68 65 20 4d | 61 6b 65 66 69 6c 65 2e |of the M|akefile.|
|00000d40| 0a 0a 09 54 6f 20 6d 61 | 6b 65 20 79 6f 75 72 20 |...To ma|ke your |
|00000d50| 6f 77 6e 20 64 65 76 69 | 63 65 20 64 65 66 69 6e |own devi|ce defin|
|00000d60| 69 74 69 6f 6e 2c 20 73 | 65 74 20 61 73 20 6d 61 |ition, s|et as ma|
|00000d70| 6e 79 20 6f 66 20 74 68 | 65 73 65 20 61 73 20 79 |ny of th|ese as y|
|00000d80| 6f 75 20 6b 6e 6f 77 3a | 0a 0a 58 4d 49 4e 2c 20 |ou know:|..XMIN, |
|00000d90| 59 4d 49 4e 09 09 4c 65 | 66 74 2c 20 62 6f 74 74 |YMIN..Le|ft, bott|
|00000da0| 6f 6d 20 70 69 78 65 6c | 0a 58 4d 41 58 2c 20 59 |om pixel|.XMAX, Y|
|00000db0| 4d 41 58 09 09 52 69 67 | 68 74 2c 20 74 6f 70 20 |MAX..Rig|ht, top |
|00000dc0| 70 69 78 65 6c 0a 0a 09 | 09 09 54 68 65 73 65 20 |pixel...|..These |
|00000dd0| 61 72 65 20 75 73 75 61 | 6c 6c 79 20 75 6e 69 6d |are usua|lly unim|
|00000de0| 70 6f 72 74 61 6e 74 20 | 74 6f 20 74 68 65 20 70 |portant |to the p|
|00000df0| 72 6f 67 72 61 6d 20 69 | 66 20 79 6f 75 0a 09 09 |rogram i|f you...|
|00000e00| 61 72 65 20 75 73 69 6e | 67 20 74 68 65 20 70 6c |are usin|g the pl|
|00000e10| 6f 74 20 6c 69 62 72 61 | 72 79 2e 20 20 53 70 65 |ot libra|ry. Spe|
|00000e20| 63 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 74 68 |cificati|on of th|
|00000e30| 65 73 65 20 69 73 20 6d | 61 69 6e 6c 79 0a 09 09 |ese is m|ainly...|
|00000e40| 61 20 63 6f 6e 76 65 6e | 69 65 6e 63 65 2e 20 20 |a conven|ience. |
|00000e50| 58 52 45 53 20 6f 72 20 | 59 52 45 53 20 77 69 6c |XRES or |YRES wil|
|00000e60| 6c 20 62 65 20 64 65 72 | 69 76 65 64 20 66 72 6f |l be der|ived fro|
|00000e70| 6d 20 74 68 65 73 65 20 | 69 66 0a 09 09 74 68 65 |m these |if...the|
|00000e80| 79 20 61 72 65 20 67 69 | 76 65 6e 2e 0a 09 09 09 |y are gi|ven.....|
|00000e90| 54 68 65 20 64 65 66 61 | 75 6c 74 20 76 61 6c 75 |The defa|ult valu|
|00000ea0| 65 73 20 6f 66 20 74 68 | 65 73 65 20 70 61 72 61 |es of th|ese para|
|00000eb0| 6d 65 74 65 72 73 20 61 | 72 65 20 30 2c 20 32 30 |meters a|re 0, 20|
|00000ec0| 34 37 2c 0a 09 09 30 2c | 20 61 6e 64 20 32 30 34 |47,...0,| and 204|
|00000ed0| 37 2e 20 20 54 68 69 73 | 20 77 69 6c 6c 20 6d 61 |7. This| will ma|
|00000ee0| 6b 65 20 58 52 45 53 20 | 3d 20 59 52 45 53 20 3d |ke XRES |= YRES =|
|00000ef0| 20 32 30 34 38 2e 0a 0a | 58 52 45 53 2c 20 59 52 | 2048...|XRES, YR|
|00000f00| 45 53 09 09 4e 75 6d 62 | 65 72 20 6f 66 20 64 6f |ES..Numb|er of do|
|00000f10| 74 73 20 61 63 72 6f 73 | 73 2c 20 64 6f 77 6e 20 |ts acros|s, down |
|00000f20| 6f 6e 20 74 68 65 20 64 | 65 76 69 63 65 0a 0a 09 |on the d|evice...|
|00000f30| 09 09 54 68 65 73 65 20 | 61 72 65 20 75 73 65 64 |..These |are used|
|00000f40| 20 62 79 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | by the |program |
|00000f50| 66 6f 72 20 73 63 61 6c | 69 6e 67 2e 20 20 49 66 |for scal|ing. If|
|00000f60| 20 61 20 76 61 6c 75 65 | 0a 09 09 74 6f 6f 20 6c | a value|...too l|
|00000f70| 61 72 67 65 20 69 73 20 | 63 68 6f 73 65 6e 2c 20 |arge is |chosen, |
|00000f80| 74 68 65 20 69 6d 61 67 | 65 20 77 69 6c 6c 20 61 |the imag|e will a|
|00000f90| 70 70 65 61 72 20 6d 6f | 72 65 20 73 6c 6f 77 6c |ppear mo|re slowl|
|00000fa0| 79 2e 20 20 49 66 20 61 | 0a 09 09 76 61 6c 75 65 |y. If a|...value|
|00000fb0| 20 74 6f 6f 20 73 6d 61 | 6c 6c 20 69 73 20 63 68 | too sma|ll is ch|
|00000fc0| 6f 73 65 6e 2c 20 74 68 | 65 20 69 6d 61 67 65 20 |osen, th|e image |
|00000fd0| 77 69 6c 6c 20 62 65 20 | 67 72 61 69 6e 79 2e 0a |will be |grainy..|
|00000fe0| 09 09 09 49 66 20 58 4d | 49 4e 20 61 6e 64 20 58 |...If XM|IN and X|
|00000ff0| 4d 41 58 20 61 72 65 20 | 73 65 74 2c 20 58 52 45 |MAX are |set, XRE|
|00001000| 53 20 77 69 6c 6c 20 62 | 65 20 73 65 74 0a 09 09 |S will b|e set...|
|00001010| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 74 6f |automati|cally to|
|00001020| 20 6d 61 74 63 68 20 74 | 68 65 69 72 20 76 61 6c | match t|heir val|
|00001030| 75 65 73 2e 0a 09 09 09 | 54 68 65 20 64 65 66 61 |ues.....|The defa|
|00001040| 75 6c 74 20 76 61 6c 75 | 65 73 20 6f 66 20 74 68 |ult valu|es of th|
|00001050| 65 73 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |ese para|meters a|
|00001060| 72 65 20 32 30 34 38 20 | 61 6e 64 0a 09 09 32 30 |re 2048 |and...20|
|00001070| 34 38 2e 20 20 54 68 69 | 73 20 73 68 6f 75 6c 64 |48. Thi|s should|
|00001080| 20 62 65 20 6c 61 72 67 | 65 20 65 6e 6f 75 67 68 | be larg|e enough|
|00001090| 20 66 6f 72 20 6d 6f 73 | 74 20 6f 75 74 70 75 74 | for mos|t output|
|000010a0| 20 64 65 76 69 63 65 73 | 2e 0a 0a 58 41 53 50 2c | devices|...XASP,|
|000010b0| 20 59 41 53 50 09 09 48 | 6f 77 20 73 71 75 61 72 | YASP..H|ow squar|
|000010c0| 65 20 74 68 65 20 64 65 | 76 69 63 65 20 69 73 0a |e the de|vice is.|
|000010d0| 4e 54 53 43 09 09 09 49 | 73 20 74 68 65 20 64 65 |NTSC...I|s the de|
|000010e0| 76 69 63 65 20 73 68 61 | 70 65 64 20 6c 69 6b 65 |vice sha|ped like|
|000010f0| 20 61 20 54 56 3f 0a 0a | 09 09 09 54 68 65 73 65 | a TV?..|...These|
|00001100| 20 70 61 72 61 6d 65 74 | 65 72 73 20 61 72 65 20 | paramet|ers are |
|00001110| 72 65 61 6c 20 6e 75 6d | 62 65 72 73 2e 20 20 54 |real num|bers. T|
|00001120| 68 65 79 20 61 72 65 20 | 61 20 6d 65 61 73 75 72 |hey are |a measur|
|00001130| 65 0a 09 09 6f 66 20 68 | 6f 77 20 77 69 64 65 20 |e...of h|ow wide |
|00001140| 61 6e 64 20 74 61 6c 6c | 20 74 68 65 20 6f 75 74 |and tall| the out|
|00001150| 70 75 74 20 61 72 65 61 | 20 69 73 2e 20 20 49 66 |put area| is. If|
|00001160| 20 74 68 65 20 67 72 61 | 70 68 69 63 73 0a 09 09 | the gra|phics...|
|00001170| 73 63 72 65 65 6e 20 6f | 6e 20 79 6f 75 72 20 74 |screen o|n your t|
|00001180| 65 72 6d 69 6e 61 6c 20 | 77 65 72 65 20 31 30 2e |erminal |were 10.|
|00001190| 35 22 20 62 79 20 38 22 | 2c 20 79 6f 75 20 63 6f |5" by 8"|, you co|
|000011a0| 75 6c 64 20 64 65 66 69 | 6e 65 0a 09 09 58 41 53 |uld defi|ne...XAS|
|000011b0| 50 20 61 73 20 31 30 2e | 35 20 61 6e 64 20 59 41 |P as 10.|5 and YA|
|000011c0| 53 50 20 61 73 20 38 2e | 30 2e 0a 09 09 09 49 66 |SP as 8.|0.....If|
|000011d0| 20 58 46 41 43 20 61 6e | 64 20 59 46 41 43 20 61 | XFAC an|d YFAC a|
|000011e0| 72 65 20 73 65 74 2c 20 | 74 68 65 73 65 20 76 61 |re set, |these va|
|000011f0| 6c 75 65 73 20 77 69 6c | 6c 20 62 65 20 73 65 74 |lues wil|l be set|
|00001200| 20 74 6f 0a 09 09 6d 61 | 74 63 68 2e 0a 09 09 09 | to...ma|tch.....|
|00001210| 54 68 65 20 64 65 66 61 | 75 6c 74 20 76 61 6c 75 |The defa|ult valu|
|00001220| 65 73 20 66 6f 72 20 74 | 68 65 73 65 20 70 61 72 |es for t|hese par|
|00001230| 61 6d 65 74 65 72 73 20 | 61 72 65 20 31 2e 30 20 |ameters |are 1.0 |
|00001240| 61 6e 64 0a 09 09 31 2e | 30 20 75 6e 6c 65 73 73 |and...1.|0 unless|
|00001250| 20 4e 54 53 43 20 69 73 | 20 64 65 66 69 6e 65 64 | NTSC is| defined|
|00001260| 2e 20 20 54 68 65 6e 20 | 74 68 65 79 20 61 72 65 |. Then |they are|
|00001270| 20 73 65 74 20 74 6f 20 | 34 2e 30 20 61 6e 64 0a | set to |4.0 and.|
|00001280| 09 09 33 2e 30 20 28 6f | 72 20 73 6f 6d 65 74 68 |..3.0 (o|r someth|
|00001290| 69 6e 67 20 65 71 75 69 | 76 61 6c 65 6e 74 29 2e |ing equi|valent).|
|000012a0| 20 20 54 68 69 73 20 6d | 69 6d 69 63 73 20 61 20 | This m|imics a |
|000012b0| 74 65 6c 65 76 69 73 69 | 6f 6e 27 73 0a 09 09 64 |televisi|on's...d|
|000012c0| 69 6d 65 6e 73 69 6f 6e | 73 20 61 6e 64 20 69 73 |imension|s and is|
|000012d0| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 70 65 72 73 | useful |for pers|
|000012e0| 6f 6e 61 6c 20 63 6f 6d | 70 75 74 65 72 73 2e 0a |onal com|puters..|
|000012f0| 0a 58 46 41 43 2c 20 59 | 46 41 43 09 09 48 6f 77 |.XFAC, Y|FAC..How|
|00001300| 20 73 71 75 61 72 65 20 | 61 20 70 69 78 65 6c 20 | square |a pixel |
|00001310| 69 73 0a 0a 09 09 09 54 | 68 65 73 65 20 74 65 6c |is.....T|hese tel|
|00001320| 6c 20 68 6f 77 20 77 69 | 64 65 20 61 6e 64 20 74 |l how wi|de and t|
|00001330| 61 6c 6c 20 61 20 70 69 | 78 65 6c 20 69 73 2e 20 |all a pi|xel is. |
|00001340| 20 49 66 20 79 6f 75 72 | 0a 09 09 70 69 78 65 6c | If your|...pixel|
|00001350| 73 20 61 72 65 20 74 61 | 6c 6c 65 72 20 74 68 61 |s are ta|ller tha|
|00001360| 6e 20 74 68 65 79 20 61 | 72 65 20 77 69 64 65 2c |n they a|re wide,|
|00001370| 20 61 6e 64 20 79 6f 75 | 20 64 6f 6e 27 74 20 73 | and you| don't s|
|00001380| 65 74 20 74 68 65 73 65 | 0a 09 09 72 69 67 68 74 |et these|...right|
|00001390| 2c 20 65 76 65 72 79 74 | 68 69 6e 67 20 77 69 6c |, everyt|hing wil|
|000013a0| 6c 20 61 70 70 65 61 72 | 20 73 74 72 65 74 63 68 |l appear| stretch|
|000013b0| 65 64 20 6f 6e 20 79 6f | 75 72 20 73 63 72 65 65 |ed on yo|ur scree|
|000013c0| 6e 2e 20 20 49 66 0a 09 | 09 79 6f 75 20 64 6f 6e |n. If..|.you don|
|000013d0| 27 74 20 6b 6e 6f 77 20 | 77 68 61 74 20 74 68 65 |'t know |what the|
|000013e0| 73 65 20 61 72 65 2c 20 | 6a 75 73 74 20 6d 65 61 |se are, |just mea|
|000013f0| 73 75 72 65 20 58 41 53 | 50 20 61 6e 64 20 59 41 |sure XAS|P and YA|
|00001400| 53 50 0a 09 09 70 72 6f | 70 65 72 6c 79 2e 0a 09 |SP...pro|perly...|
|00001410| 09 09 49 66 20 58 41 53 | 50 2c 20 59 41 53 50 2c |..If XAS|P, YASP,|
|00001420| 20 58 52 45 53 2c 20 61 | 6e 64 20 59 52 45 53 20 | XRES, a|nd YRES |
|00001430| 61 72 65 20 73 65 74 2c | 20 74 68 65 73 65 20 76 |are set,| these v|
|00001440| 61 6c 75 65 73 0a 09 09 | 61 72 65 20 64 65 72 69 |alues...|are deri|
|00001450| 76 65 64 2e 0a 09 09 09 | 54 68 65 20 64 65 66 61 |ved.....|The defa|
|00001460| 75 6c 74 20 76 61 6c 75 | 65 73 20 66 6f 72 20 74 |ult valu|es for t|
|00001470| 68 65 73 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 |hese par|ameters |
|00001480| 61 72 65 20 31 2e 30 20 | 61 6e 64 0a 09 09 31 2e |are 1.0 |and...1.|
|00001490| 30 2e 0a 0a 4f 4e 4f 09 | 09 09 44 6f 6e 27 74 20 |0...ONO.|..Don't |
|000014a0| 6f 66 66 73 65 74 20 6d | 79 20 73 63 72 65 65 6e |offset m|y screen|
|000014b0| 21 0a 0a 09 09 09 49 46 | 53 20 45 78 70 6c 6f 72 |!.....IF|S Explor|
|000014c0| 65 72 20 77 6f 72 6b 73 | 20 6f 6e 20 61 20 73 71 |er works| on a sq|
|000014d0| 75 61 72 65 20 73 63 72 | 65 65 6e 2e 20 20 49 66 |uare scr|een. If|
|000014e0| 20 79 6f 75 72 0a 09 09 | 64 65 76 69 63 65 20 69 | your...|device i|
|000014f0| 73 6e 27 74 20 73 71 75 | 61 72 65 2c 20 69 74 20 |sn't squ|are, it |
|00001500| 77 69 6c 6c 20 6f 6e 6c | 79 20 75 73 65 20 61 20 |will onl|y use a |
|00001510| 70 61 72 74 20 6f 66 20 | 69 74 2e 20 20 49 66 20 |part of |it. If |
|00001520| 4f 4e 4f 0a 09 09 69 73 | 20 6e 6f 74 20 64 65 66 |ONO...is| not def|
|00001530| 69 6e 65 64 2c 20 74 68 | 69 73 20 72 65 67 69 6f |ined, th|is regio|
|00001540| 6e 20 73 68 6f 75 6c 64 | 20 62 65 20 63 65 6e 74 |n should| be cent|
|00001550| 65 72 65 64 2e 20 20 49 | 66 20 74 68 69 73 0a 09 |ered. I|f this..|
|00001560| 09 69 73 6e 27 74 20 77 | 68 61 74 20 79 6f 75 20 |.isn't w|hat you |
|00001570| 77 61 6e 74 20 5b 6f 72 | 20 69 74 20 64 6f 65 73 |want [or| it does|
|00001580| 6e 27 74 20 77 6f 72 6b | 21 5d 20 64 65 66 69 6e |n't work|!] defin|
|00001590| 65 20 4f 4e 4f 2e 0a 0a | 09 41 6c 6c 20 6f 66 20 |e ONO...|.All of |
|000015a0| 74 68 65 73 65 20 70 61 | 72 61 6d 65 74 65 72 73 |these pa|rameters|
|000015b0| 20 61 72 65 20 73 65 74 | 20 69 6e 20 74 68 65 20 | are set| in the |
|000015c0| 6f 72 64 65 72 20 74 68 | 61 74 20 74 68 65 79 20 |order th|at they |
|000015d0| 61 72 65 20 6c 69 73 74 | 65 64 0a 61 62 6f 76 65 |are list|ed.above|
|000015e0| 2e 20 20 49 6e 20 6f 74 | 68 65 72 20 77 6f 72 64 |. In ot|her word|
|000015f0| 73 2c 20 58 52 45 53 20 | 69 73 20 73 65 74 20 62 |s, XRES |is set b|
|00001600| 79 20 74 68 65 20 74 69 | 6d 65 20 58 46 41 43 20 |y the ti|me XFAC |
|00001610| 69 73 20 64 65 63 69 64 | 65 64 20 6f 6e 20 77 68 |is decid|ed on wh|
|00001620| 65 74 68 65 72 0a 79 6f | 75 20 64 69 64 20 69 74 |ether.yo|u did it|
|00001630| 20 6f 72 20 6e 6f 74 2e | 0a 09 41 6c 6c 20 6f 66 | or not.|..All of|
|00001640| 20 74 68 69 73 20 6d 61 | 67 69 63 20 68 61 70 70 | this ma|gic happ|
|00001650| 65 6e 73 20 69 6e 20 69 | 66 73 2e 68 2e 20 20 4c |ens in i|fs.h. L|
|00001660| 6f 6f 6b 20 74 68 65 72 | 65 20 66 6f 72 20 6d 6f |ook ther|e for mo|
|00001670| 72 65 20 64 65 74 61 69 | 6c 73 2e 0a 0a 09 4e 65 |re detai|ls....Ne|
|00001680| 78 74 2c 20 70 75 74 20 | 74 68 65 20 6e 61 6d 65 |xt, put |the name|
|00001690| 20 6f 72 20 6c 69 6e 6b | 20 6f 70 74 69 6f 6e 20 | or link| option |
|000016a0| 66 6f 72 20 79 6f 75 72 | 20 70 6c 6f 74 20 6c 69 |for your| plot li|
|000016b0| 62 72 61 72 79 20 6f 6e | 20 74 68 65 0a 22 4c 49 |brary on| the."LI|
|000016c0| 42 20 3d 20 22 20 6c 69 | 6e 65 2e 20 20 54 68 69 |B = " li|ne. Thi|
|000016d0| 73 20 6d 69 67 68 74 20 | 6c 6f 6f 6b 20 73 6f 6d |s might |look som|
|000016e0| 65 74 68 69 6e 67 20 6c | 69 6b 65 20 22 4c 49 42 |ething l|ike "LIB|
|000016f0| 20 3d 20 2d 6c 34 30 31 | 34 22 20 66 6f 72 20 61 | = -l401|4" for a|
|00001700| 20 54 65 6b 74 72 6f 6e | 69 78 0a 34 30 31 34 20 | Tektron|ix.4014 |
|00001710| 74 65 72 6d 69 6e 61 6c | 2c 20 6f 72 20 22 4c 49 |terminal|, or "LI|
|00001720| 42 20 3d 20 2d 6c 65 78 | 31 30 30 30 22 20 66 6f |B = -lex|1000" fo|
|00001730| 72 20 61 6e 20 45 70 73 | 6f 6e 20 45 58 2d 31 30 |r an Eps|on EX-10|
|00001740| 30 30 20 64 6f 74 20 6d | 61 74 72 69 78 20 70 72 |00 dot m|atrix pr|
|00001750| 69 6e 74 65 72 2e 0a 0a | 09 4e 65 78 74 20 6d 61 |inter...|.Next ma|
|00001760| 6b 65 20 73 75 72 65 20 | 52 4e 44 20 69 73 20 64 |ke sure |RND is d|
|00001770| 65 66 69 6e 65 64 20 70 | 72 6f 70 65 72 6c 79 2e |efined p|roperly.|
|00001780| 20 20 53 65 65 20 72 6e | 64 2e 68 20 66 6f 72 20 | See rn|d.h for |
|00001790| 64 65 74 61 69 6c 73 2e | 20 20 41 64 64 0a 74 68 |details.| Add.th|
|000017a0| 65 20 70 72 6f 70 65 72 | 20 64 65 66 69 6e 69 74 |e proper| definit|
|000017b0| 69 6f 6e 73 20 69 6e 20 | 72 6e 64 2e 68 20 61 6e |ions in |rnd.h an|
|000017c0| 64 20 4d 61 6b 65 66 69 | 6c 65 2e 0a 0a 09 46 69 |d Makefi|le....Fi|
|000017d0| 6e 61 6c 6c 79 2c 20 6a | 75 73 74 20 74 79 70 65 |nally, j|ust type|
|000017e0| 20 22 6d 61 6b 65 22 20 | 61 6e 64 20 74 68 65 20 | "make" |and the |
|000017f0| 70 72 6f 67 72 61 6d 20 | 73 68 6f 75 6c 64 20 63 |program |should c|
|00001800| 6f 6d 70 69 6c 65 2e 0a | 0a 49 49 49 2e 20 46 6f |ompile..|.III. Fo|
|00001810| 72 6d 61 74 20 6f 66 20 | 69 6e 70 75 74 20 66 69 |rmat of |input fi|
|00001820| 6c 65 73 0a 0a 09 54 68 | 65 20 66 69 6c 65 73 20 |les...Th|e files |
|00001830| 75 73 65 64 20 62 79 20 | 74 68 69 73 20 70 72 6f |used by |this pro|
|00001840| 67 72 61 6d 20 61 72 65 | 20 73 69 6d 69 6c 61 72 |gram are| similar|
|00001850| 20 74 6f 20 74 68 65 20 | 64 61 74 61 20 73 65 74 | to the |data set|
|00001860| 73 20 73 68 6f 77 6e 20 | 69 6e 0a 42 61 72 6e 73 |s shown |in.Barns|
|00001870| 6c 65 79 2c 20 4d 2e 20 | 46 2e 20 61 6e 64 20 53 |ley, M. |F. and S|
|00001880| 6c 6f 61 6e 2c 20 41 2e | 20 44 2e 20 22 41 20 42 |loan, A.| D. "A B|
|00001890| 65 74 74 65 72 20 57 61 | 79 20 74 6f 20 43 6f 6d |etter Wa|y to Com|
|000018a0| 70 72 65 73 73 20 49 6d | 61 67 65 73 2e 22 0a 42 |press Im|ages.".B|
|000018b0| 79 74 65 2c 20 4a 61 6e | 75 61 72 79 20 31 39 38 |yte, Jan|uary 198|
|000018c0| 38 2c 20 70 70 2e 20 32 | 31 35 2d 32 32 33 2e 0a |8, pp. 2|15-223..|
|000018d0| 0a 09 45 61 63 68 20 66 | 69 6c 65 20 63 6f 6e 73 |..Each f|ile cons|
|000018e0| 69 73 74 73 20 6f 66 20 | 6f 6e 65 20 6f 72 20 6d |ists of |one or m|
|000018f0| 6f 72 65 20 74 72 61 6e | 73 66 6f 72 6d 73 2e 20 |ore tran|sforms. |
|00001900| 20 45 61 63 68 20 74 72 | 61 6e 73 66 6f 72 6d 20 | Each tr|ansform |
|00001910| 68 61 73 0a 73 65 76 65 | 6e 20 70 61 72 61 6d 65 |has.seve|n parame|
|00001920| 74 65 72 73 2c 20 72 65 | 66 65 72 72 65 64 20 74 |ters, re|ferred t|
|00001930| 6f 20 61 73 20 61 2c 20 | 62 2c 20 63 2c 20 64 2c |o as a, |b, c, d,|
|00001940| 20 65 2c 20 66 2c 20 61 | 6e 64 20 70 2e 20 20 54 | e, f, a|nd p. T|
|00001950| 68 65 73 65 20 73 68 6f | 75 6c 64 0a 62 65 20 73 |hese sho|uld.be s|
|00001960| 65 70 61 72 61 74 65 64 | 20 62 79 20 77 68 69 74 |eparated| by whit|
|00001970| 65 20 73 70 61 63 65 2c | 20 62 75 74 20 61 72 65 |e space,| but are|
|00001980| 20 6f 74 68 65 72 77 69 | 73 65 20 66 72 65 65 20 | otherwi|se free |
|00001990| 66 6f 72 6d 61 74 2e 20 | 20 54 68 65 20 66 69 6c |format. | The fil|
|000019a0| 65 0a 73 68 6f 75 6c 64 | 20 68 61 76 65 20 6f 6e |e.should| have on|
|000019b0| 65 20 74 72 61 6e 73 66 | 6f 72 6d 20 70 65 72 20 |e transf|orm per |
|000019c0| 6c 69 6e 65 2c 20 61 6e | 64 20 6e 6f 20 62 6c 61 |line, an|d no bla|
|000019d0| 6e 6b 20 6c 69 6e 65 73 | 2e 20 20 41 66 74 65 72 |nk lines|. After|
|000019e0| 20 74 68 65 0a 74 72 61 | 6e 73 66 6f 72 6d 73 2c | the.tra|nsforms,|
|000019f0| 20 74 68 65 72 65 20 69 | 73 20 61 6e 20 61 64 64 | there i|s an add|
|00001a00| 69 74 69 6f 6e 61 6c 20 | 6c 69 6e 65 20 63 6f 6e |itional |line con|
|00001a10| 74 61 69 6e 69 6e 67 20 | 66 6f 75 72 20 6e 75 6d |taining |four num|
|00001a20| 62 65 72 73 20 64 65 73 | 63 72 69 62 69 6e 67 0a |bers des|cribing.|
|00001a30| 74 68 65 20 73 63 61 6c | 65 20 61 6e 64 20 6f 72 |the scal|e and or|
|00001a40| 69 67 69 6e 20 6f 66 20 | 74 68 65 20 69 6d 61 67 |igin of |the imag|
|00001a50| 65 2e 20 20 45 76 65 72 | 79 20 70 6f 69 6e 74 20 |e. Ever|y point |
|00001a60| 69 6e 20 74 68 65 20 69 | 6d 61 67 65 20 68 61 73 |in the i|mage has|
|00001a70| 20 69 74 73 20 78 0a 63 | 6f 6f 72 64 69 6e 61 74 | its x.c|oordinat|
|00001a80| 65 20 6d 75 6c 74 69 70 | 6c 69 65 64 20 62 79 20 |e multip|lied by |
|00001a90| 74 68 65 20 66 69 72 73 | 74 20 6f 66 20 74 68 65 |the firs|t of the|
|00001aa0| 73 65 20 61 6e 64 20 61 | 64 64 65 64 20 74 6f 20 |se and a|dded to |
|00001ab0| 74 68 65 20 74 68 69 72 | 64 20 62 65 66 6f 72 65 |the thir|d before|
|00001ac0| 0a 62 65 69 6e 67 20 73 | 63 61 6c 65 64 20 74 6f |.being s|caled to|
|00001ad0| 20 74 68 65 20 64 65 76 | 69 63 65 20 61 6e 64 20 | the dev|ice and |
|00001ae0| 70 6c 6f 74 74 65 64 2e | 20 20 45 76 65 72 79 20 |plotted.| Every |
|00001af0| 70 6f 69 6e 74 20 69 6e | 20 74 68 65 20 69 6d 61 |point in| the ima|
|00001b00| 67 65 20 68 61 73 20 69 | 74 73 20 79 0a 63 6f 6f |ge has i|ts y.coo|
|00001b10| 72 64 69 6e 61 74 65 20 | 6d 75 6c 74 69 70 6c 69 |rdinate |multipli|
|00001b20| 65 64 20 62 79 20 74 68 | 65 20 73 65 63 6f 6e 64 |ed by th|e second|
|00001b30| 20 6f 66 20 74 68 65 73 | 65 20 61 6e 64 20 61 64 | of thes|e and ad|
|00001b40| 64 65 64 20 74 6f 20 74 | 68 65 20 66 6f 75 72 74 |ded to t|he fourt|
|00001b50| 68 20 62 65 66 6f 72 65 | 0a 62 65 69 6e 67 20 73 |h before|.being s|
|00001b60| 63 61 6c 65 64 20 74 6f | 20 74 68 65 20 64 65 76 |caled to| the dev|
|00001b70| 69 63 65 20 61 6e 64 20 | 70 6c 6f 74 74 65 64 2e |ice and |plotted.|
|00001b80| 20 20 54 68 65 73 65 20 | 63 61 6e 20 62 65 20 75 | These |can be u|
|00001b90| 73 65 64 20 74 6f 20 7a | 6f 6f 6d 20 69 6e 20 6f |sed to z|oom in o|
|00001ba0| 6e 0a 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 70 |n.a part|icular p|
|00001bb0| 61 72 74 20 6f 66 20 61 | 6e 20 69 6d 61 67 65 20 |art of a|n image |
|00001bc0| 66 6f 72 20 63 6c 6f 73 | 65 72 20 65 78 61 6d 69 |for clos|er exami|
|00001bd0| 6e 61 74 69 6f 6e 2e 20 | 20 54 68 65 73 65 20 63 |nation. | These c|
|00001be0| 61 6e 20 61 6c 73 6f 20 | 62 65 0a 75 73 65 64 20 |an also |be.used |
|00001bf0| 69 66 20 74 68 65 20 69 | 6d 61 67 65 20 74 75 72 |if the i|mage tur|
|00001c00| 6e 73 20 6f 75 74 20 75 | 70 73 69 64 65 20 64 6f |ns out u|pside do|
|00001c10| 77 6e 20 28 59 4d 49 4e | 20 61 6e 64 20 59 4d 41 |wn (YMIN| and YMA|
|00001c20| 58 20 73 68 6f 75 6c 64 | 20 62 65 20 61 64 6a 75 |X should| be adju|
|00001c30| 73 74 65 64 0a 66 69 72 | 73 74 20 68 6f 77 65 76 |sted.fir|st howev|
|00001c40| 65 72 29 2e 0a 09 4e 4f | 54 45 3a 20 54 68 65 20 |er)...NO|TE: The |
|00001c50| 6e 6f 72 6d 61 6c 69 7a | 69 6e 67 20 6f 72 69 67 |normaliz|ing orig|
|00001c60| 69 6e 20 61 6e 64 20 73 | 63 61 6c 65 20 70 61 72 |in and s|cale par|
|00001c70| 61 6d 65 74 65 72 73 20 | 69 6e 20 74 68 65 20 64 |ameters |in the d|
|00001c80| 61 74 61 20 66 69 6c 65 | 0a 28 74 68 6f 73 65 20 |ata file|.(those |
|00001c90| 67 69 76 65 6e 20 6f 6e | 20 74 68 65 20 6c 61 73 |given on| the las|
|00001ca0| 74 20 6c 69 6e 65 29 20 | 61 72 65 20 4e 4f 54 20 |t line) |are NOT |
|00001cb0| 69 6e 20 64 65 76 69 63 | 65 20 63 6f 6f 72 64 69 |in devic|e coordi|
|00001cc0| 6e 61 74 65 73 2e 20 20 | 54 68 65 20 76 69 72 74 |nates. |The virt|
|00001cd0| 75 61 6c 0a 73 63 72 65 | 65 6e 20 75 73 65 64 20 |ual.scre|en used |
|00001ce0| 62 79 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |by this |program |
|00001cf0| 68 61 73 20 28 30 2c 20 | 30 29 20 61 74 20 74 68 |has (0, |0) at th|
|00001d00| 65 20 6c 6f 77 65 72 20 | 6c 65 66 74 20 61 6e 64 |e lower |left and|
|00001d10| 20 28 31 2c 20 31 29 20 | 61 74 20 74 68 65 0a 75 | (1, 1) |at the.u|
|00001d20| 70 70 65 72 20 72 69 67 | 68 74 2e 20 20 54 68 65 |pper rig|ht. The|
|00001d30| 20 6f 72 69 67 69 6e 20 | 69 73 20 64 65 73 63 72 | origin |is descr|
|00001d40| 69 62 65 64 20 69 6e 20 | 74 68 65 73 65 20 74 65 |ibed in |these te|
|00001d50| 72 6d 73 2e 0a 09 41 6c | 73 6f 2c 20 74 68 65 20 |rms...Al|so, the |
|00001d60| 73 75 6d 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 70 |sum of a|ll the p|
|00001d70| 20 70 61 72 61 6d 65 74 | 65 72 73 20 28 74 68 65 | paramet|ers (the|
|00001d80| 20 6c 61 73 74 20 63 6f | 6c 75 6d 6e 29 20 6d 75 | last co|lumn) mu|
|00001d90| 73 74 20 62 65 20 31 2e | 30 2c 0a 6f 72 20 79 6f |st be 1.|0,.or yo|
|00001da0| 75 20 77 69 6c 6c 20 67 | 65 74 20 61 6e 20 65 72 |u will g|et an er|
|00001db0| 72 6f 72 2e 0a 0a 49 56 | 2e 20 20 52 75 6e 6e 69 |ror...IV|. Runni|
|00001dc0| 6e 67 0a 0a 09 49 46 53 | 20 45 78 70 6c 6f 72 65 |ng...IFS| Explore|
|00001dd0| 72 20 68 61 73 20 6f 6e | 65 20 61 72 67 75 6d 65 |r has on|e argume|
|00001de0| 6e 74 2c 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |nt, the |name of |
|00001df0| 61 20 64 61 74 61 20 66 | 69 6c 65 20 74 6f 20 62 |a data f|ile to b|
|00001e00| 65 20 70 6c 6f 74 74 65 | 64 2e 0a 49 66 20 74 68 |e plotte|d..If th|
|00001e10| 69 73 20 69 73 20 6c 65 | 66 74 20 6f 75 74 2c 20 |is is le|ft out, |
|00001e20| 79 6f 75 27 6c 6c 20 67 | 65 74 20 61 20 22 55 73 |you'll g|et a "Us|
|00001e30| 61 67 65 22 20 6d 65 73 | 73 61 67 65 2e 20 20 53 |age" mes|sage. S|
|00001e40| 65 76 65 72 61 6c 20 65 | 78 61 6d 70 6c 65 20 66 |everal e|xample f|
|00001e50| 69 6c 65 73 20 61 72 65 | 0a 69 6e 63 6c 75 64 65 |iles are|.include|
|00001e60| 64 20 77 69 74 68 20 74 | 68 65 20 70 72 6f 67 72 |d with t|he progr|
|00001e70| 61 6d 2e 20 20 41 6c 74 | 68 6f 75 67 68 20 61 6c |am. Alt|hough al|
|00001e80| 6c 20 6d 79 20 64 61 74 | 61 20 66 69 6c 65 73 20 |l my dat|a files |
|00001e90| 68 61 76 65 20 6e 61 6d | 65 73 20 74 68 61 74 20 |have nam|es that |
|00001ea0| 65 6e 64 0a 77 69 74 68 | 20 22 2e 69 66 73 22 2c |end.with| ".ifs",|
|00001eb0| 20 74 68 61 74 20 73 75 | 66 66 69 78 20 69 73 20 | that su|ffix is |
|00001ec0| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 79 20 28 69 |not nece|ssary (i|
|00001ed0| 65 3a 20 79 6f 75 72 20 | 66 69 6c 65 20 63 6f 75 |e: your |file cou|
|00001ee0| 6c 64 20 6a 75 73 74 20 | 62 65 20 63 61 6c 6c 65 |ld just |be calle|
|00001ef0| 64 0a 22 77 69 64 67 65 | 74 22 29 2e 0a 0a 09 54 |d."widge|t")....T|
|00001f00| 68 65 20 45 78 70 6c 6f | 72 65 72 20 61 6c 73 6f |he Explo|rer also|
|00001f10| 20 68 61 73 20 74 77 6f | 20 6f 70 74 69 6f 6e 73 | has two| options|
|00001f20| 2e 20 20 22 2d 6e 22 20 | 66 6f 6c 6c 6f 77 65 64 |. "-n" |followed|
|00001f30| 20 62 79 20 61 20 6e 75 | 6d 62 65 72 20 74 65 6c | by a nu|mber tel|
|00001f40| 6c 73 0a 69 74 20 68 6f | 77 20 6d 61 6e 79 20 70 |ls.it ho|w many p|
|00001f50| 6f 69 6e 74 73 20 74 6f | 20 70 6c 6f 74 20 28 64 |oints to| plot (d|
|00001f60| 65 66 61 75 6c 74 73 20 | 74 6f 20 58 52 45 53 2a |efaults |to XRES*|
|00001f70| 59 52 45 53 29 2e 20 20 | 22 2d 6f 22 20 66 6f 6c |YRES). |"-o" fol|
|00001f80| 6c 6f 77 65 64 20 62 79 | 20 61 20 6e 75 6d 62 65 |lowed by| a numbe|
|00001f90| 72 0a 74 65 6c 6c 73 20 | 69 74 20 68 6f 77 20 6d |r.tells |it how m|
|00001fa0| 61 6e 79 20 70 6f 69 6e | 74 73 20 74 6f 20 73 6b |any poin|ts to sk|
|00001fb0| 69 70 20 62 65 66 6f 72 | 65 20 69 74 20 73 74 61 |ip befor|e it sta|
|00001fc0| 72 74 73 20 70 6c 6f 74 | 74 69 6e 67 20 70 6f 69 |rts plot|ting poi|
|00001fd0| 6e 74 73 20 28 64 65 66 | 61 75 6c 74 73 20 74 6f |nts (def|aults to|
|00001fe0| 0a 74 65 6e 29 2e 0a 0a | 56 2e 20 46 75 74 75 72 |.ten)...|V. Futur|
|00001ff0| 65 20 65 6e 68 61 6e 63 | 65 6d 65 6e 74 73 0a 0a |e enhanc|ements..|
|00002000| 09 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 |.This pr|ogram is|
|00002010| 20 73 74 69 6c 6c 20 69 | 6e 20 69 74 73 20 69 6e | still i|n its in|
|00002020| 66 61 6e 63 79 2c 20 61 | 6e 64 20 69 74 20 64 6f |fancy, a|nd it do|
|00002030| 65 73 6e 27 74 20 79 65 | 74 20 64 6f 20 65 76 65 |esn't ye|t do eve|
|00002040| 72 79 74 68 69 6e 67 0a | 49 20 77 61 6e 74 20 69 |rything.|I want i|
|00002050| 74 20 74 6f 2e 20 20 48 | 65 72 65 20 61 72 65 20 |t to. H|ere are |
|00002060| 61 20 66 65 77 20 74 68 | 69 6e 67 73 20 49 20 68 |a few th|ings I h|
|00002070| 6f 70 65 20 74 6f 20 61 | 64 64 20 73 6f 6f 6e 20 |ope to a|dd soon |
|00002080| 28 61 6e 64 20 74 6f 20 | 74 68 65 20 41 6d 69 67 |(and to |the Amig|
|00002090| 61 0a 76 65 72 73 69 6f | 6e 29 3a 0a 0a 09 41 75 |a.versio|n):...Au|
|000020a0| 74 6f 70 72 6f 62 61 62 | 69 6c 69 74 79 09 49 66 |toprobab|ility.If|
|000020b0| 20 79 6f 75 20 64 6f 6e | 27 74 20 6b 6e 6f 77 20 | you don|'t know |
|000020c0| 77 68 61 74 20 74 6f 20 | 70 75 74 20 66 6f 72 20 |what to |put for |
|000020d0| 74 68 65 20 6c 61 73 74 | 20 63 6f 6c 75 6d 6e 2c |the last| column,|
|000020e0| 0a 09 09 09 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |....the |program |
|000020f0| 77 69 6c 6c 20 67 65 6e | 65 72 61 74 65 20 73 6f |will gen|erate so|
|00002100| 6d 65 74 68 69 6e 67 20 | 66 6f 72 20 79 6f 75 2e |mething |for you.|
|00002110| 0a 0a 09 41 75 74 6f 73 | 63 61 6c 69 6e 67 09 49 |...Autos|caling.I|
|00002120| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 6b 6e 6f 77 |f you do|n't know|
|00002130| 20 77 68 61 74 20 74 6f | 20 70 75 74 20 66 6f 72 | what to| put for|
|00002140| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 2c 0a | the las|t line,.|
|00002150| 09 09 09 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |...the p|rogram w|
|00002160| 69 6c 6c 20 66 69 6e 64 | 20 6f 75 74 20 66 6f 72 |ill find| out for|
|00002170| 20 79 6f 75 2e 0a 0a 09 | 41 75 74 6f 73 74 6f 70 | you....|Autostop|
|00002180| 09 57 69 6c 6c 20 73 74 | 6f 70 20 77 68 65 6e 20 |.Will st|op when |
|00002190| 74 68 65 20 70 69 63 74 | 75 72 65 20 69 73 20 64 |the pict|ure is d|
|000021a0| 6f 6e 65 2e 20 20 28 42 | 6f 79 2c 20 74 68 69 73 |one. (B|oy, this|
|000021b0| 20 77 6f 75 6c 64 0a 09 | 09 09 62 65 20 6e 69 63 | would..|..be nic|
|000021c0| 65 21 29 0a 0a 09 43 6f | 6c 6f 72 09 09 45 69 74 |e!)...Co|lor..Eit|
|000021d0| 68 65 72 20 77 69 74 68 | 20 73 65 76 65 72 61 6c |her with| several|
|000021e0| 20 62 69 74 20 70 6c 61 | 6e 65 73 2c 20 6f 72 20 | bit pla|nes, or |
|000021f0| 73 6f 6d 65 20 6f 74 68 | 65 72 20 74 72 69 63 6b |some oth|er trick|
|00002200| 2e 0a 0a 09 4d 75 6c 74 | 69 70 6c 65 20 66 69 6c |....Mult|iple fil|
|00002210| 65 73 09 57 6f 75 6c 64 | 20 70 6c 6f 74 20 73 65 |es.Would| plot se|
|00002220| 76 65 72 61 6c 20 73 79 | 73 74 65 6d 73 20 6f 6e |veral sy|stems on|
|00002230| 20 74 68 65 20 73 63 72 | 65 65 6e 20 61 74 20 6f | the scr|een at o|
|00002240| 6e 63 65 2e 0a 0a 09 44 | 69 66 66 65 72 65 6e 74 |nce....D|ifferent|
|00002250| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 66 6f 72 6d | input f|ile form|
|00002260| 61 74 73 20 61 72 65 20 | 61 6c 73 6f 20 62 65 69 |ats are |also bei|
|00002270| 6e 67 20 63 6f 6e 73 69 | 64 65 72 65 64 2e 0a 0a |ng consi|dered...|
|00002280| 09 49 66 20 61 6e 79 6f | 6e 65 20 68 61 73 20 61 |.If anyo|ne has a|
|00002290| 6e 79 20 73 75 67 67 65 | 73 74 69 6f 6e 73 2c 20 |ny sugge|stions, |
|000022a0| 63 6f 6d 6d 65 6e 74 73 | 2c 20 71 75 65 73 74 69 |comments|, questi|
|000022b0| 6f 6e 73 2c 20 6f 72 20 | 62 75 67 20 72 65 70 6f |ons, or |bug repo|
|000022c0| 72 74 73 0a 61 62 6f 75 | 74 20 74 68 69 73 20 70 |rts.abou|t this p|
|000022d0| 72 6f 67 72 61 6d 2c 20 | 70 6c 65 61 73 65 20 73 |rogram, |please s|
|000022e0| 65 6e 64 20 74 68 65 6d | 20 74 6f 20 6d 65 2e 0a |end them| to me..|
|000022f0| 09 41 64 64 69 74 69 6f | 6e 61 6c 6c 79 2c 20 49 |.Additio|nally, I|
|00002300| 20 61 6d 20 62 65 67 69 | 6e 6e 69 6e 67 20 77 6f | am begi|nning wo|
|00002310| 72 6b 20 6f 6e 20 61 6e | 20 49 46 53 20 63 6f 6d |rk on an| IFS com|
|00002320| 70 72 65 73 73 69 6f 6e | 20 70 72 6f 67 72 61 6d |pression| program|
|00002330| 2e 0a 49 74 20 69 73 20 | 75 6e 6c 69 6b 65 6c 79 |..It is |unlikely|
|00002340| 20 74 6f 20 62 65 20 64 | 6f 6e 65 20 61 6e 79 20 | to be d|one any |
|00002350| 74 69 6d 65 20 73 6f 6f | 6e 2e 20 20 41 6e 79 20 |time soo|n. Any |
|00002360| 61 64 64 69 74 69 6f 6e | 61 6c 20 69 6e 66 6f 72 |addition|al infor|
|00002370| 6d 61 74 69 6f 6e 20 6f | 6e 0a 74 68 69 73 20 73 |mation o|n.this s|
|00002380| 75 62 6a 65 63 74 20 77 | 6f 75 6c 64 20 62 65 20 |ubject w|ould be |
|00002390| 67 72 65 61 74 6c 79 20 | 61 70 70 72 65 63 69 61 |greatly |apprecia|
|000023a0| 74 65 64 2e 0a 0a 09 49 | 20 68 6f 70 65 20 79 6f |ted....I| hope yo|
|000023b0| 75 20 65 6e 6a 6f 79 20 | 74 68 69 73 20 70 72 6f |u enjoy |this pro|
|000023c0| 67 72 61 6d 2e 20 20 49 | 74 20 68 61 73 20 62 65 |gram. I|t has be|
|000023d0| 65 6e 20 61 20 72 65 61 | 6c 20 65 79 65 2d 6f 70 |en a rea|l eye-op|
|000023e0| 65 6e 65 72 20 66 6f 72 | 20 6d 65 2e 0a 0a 0a 53 |ener for| me....S|
|000023f0| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00002400| 36 39 33 33 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |6933 -ne| "`wc -c|
|00002410| 20 52 45 41 44 4d 45 60 | 22 0a 74 68 65 6e 0a 65 | README`|".then.e|
|00002420| 63 68 6f 20 73 68 61 72 | 3a 20 65 72 72 6f 72 20 |cho shar|: error |
|00002430| 74 72 61 6e 73 6d 69 74 | 74 69 6e 67 20 52 45 41 |transmit|ting REA|
|00002440| 44 4d 45 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |DME '(sh|ould hav|
|00002450| 65 20 62 65 65 6e 20 36 | 39 33 33 20 63 68 61 72 |e been 6|933 char|
|00002460| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 65 63 68 6f |acters)'|.fi.echo|
|00002470| 20 73 68 61 72 3a 20 65 | 78 74 72 61 63 74 69 6e | shar: e|xtractin|
|00002480| 67 20 4d 61 6b 65 66 69 | 6c 65 20 27 28 34 35 33 |g Makefi|le '(453|
|00002490| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 63 61 | charact|ers)'.ca|
|000024a0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|000024b0| 20 4d 61 6b 65 66 69 6c | 65 0a 23 0a 23 20 49 46 | Makefil|e.#.# IF|
|000024c0| 53 20 45 78 70 6c 6f 72 | 65 72 20 31 2e 30 09 28 |S Explor|er 1.0.(|
|000024d0| 43 29 31 39 38 38 20 62 | 79 20 41 6c 6c 65 6e 20 |C)1988 b|y Allen |
|000024e0| 42 72 61 75 6e 73 64 6f | 72 66 20 28 61 68 67 40 |Braunsdo|rf (ahg@|
|000024f0| 6b 2e 63 63 2e 70 75 72 | 64 75 65 2e 65 64 75 29 |k.cc.pur|due.edu)|
|00002500| 0a 23 0a 0a 23 0a 23 20 | 4d 61 6b 65 66 69 6c 65 |.#..#.# |Makefile|
|00002510| 09 43 68 61 6e 67 65 20 | 74 68 69 73 20 72 61 74 |.Change |this rat|
|00002520| 68 65 72 20 74 68 61 6e | 20 74 68 65 20 6f 74 68 |her than| the oth|
|00002530| 65 72 20 66 69 6c 65 73 | 2c 20 69 66 20 70 6f 73 |er files|, if pos|
|00002540| 73 69 62 6c 65 2e 0a 23 | 0a 23 20 43 68 6f 6f 73 |sible..#|.# Choos|
|00002550| 65 20 61 20 44 45 56 20 | 28 61 6e 64 20 69 74 73 |e a DEV |(and its|
|00002560| 20 61 73 73 6f 63 69 61 | 74 65 64 20 4c 49 42 29 | associa|ted LIB)|
|00002570| 20 66 72 6f 6d 20 64 65 | 76 2e 68 2e 20 20 46 69 | from de|v.h. Fi|
|00002580| 6c 6c 20 74 68 6f 73 65 | 20 69 6e 20 62 65 6c 6f |ll those| in belo|
|00002590| 77 2e 0a 23 20 44 65 66 | 69 6e 65 20 61 20 72 61 |w..# Def|ine a ra|
|000025a0| 6e 64 6f 6d 20 6e 75 6d | 62 65 72 20 67 65 6e 65 |ndom num|ber gene|
|000025b0| 72 61 74 6f 72 20 69 6e | 20 72 6e 64 2e 68 20 61 |rator in| rnd.h a|
|000025c0| 6e 64 20 6e 6f 74 65 20 | 69 74 20 62 65 6c 6f 77 |nd note |it below|
|000025d0| 2e 0a 23 0a 0a 44 45 56 | 20 3d 20 47 45 4e 45 52 |..#..DEV| = GENER|
|000025e0| 49 43 0a 4c 49 42 20 3d | 20 2d 6c 34 30 31 34 0a |IC.LIB =| -l4014.|
|000025f0| 52 4e 44 20 3d 20 52 41 | 4e 44 4f 4d 0a 0a 43 46 |RND = RA|NDOM..CF|
|00002600| 4c 41 47 53 20 3d 20 2d | 73 20 2d 4f 20 2d 44 24 |LAGS = -|s -O -D$|
|00002610| 28 44 45 56 29 20 2d 44 | 24 28 52 4e 44 29 0a 0a |(DEV) -D|$(RND)..|
|00002620| 61 6c 6c 3a 20 69 66 73 | 0a 0a 69 66 73 3a 20 69 |all: ifs|..ifs: i|
|00002630| 66 73 2e 6f 0a 09 63 63 | 20 2d 6f 20 69 66 73 20 |fs.o..cc| -o ifs |
|00002640| 69 66 73 2e 6f 20 24 28 | 4c 49 42 29 0a 0a 69 66 |ifs.o $(|LIB)..if|
|00002650| 73 2e 6f 3a 20 69 66 73 | 2e 63 20 69 66 73 2e 68 |s.o: ifs|.c ifs.h|
|00002660| 20 64 65 76 2e 68 20 72 | 6e 64 2e 68 0a 0a 6e 65 | dev.h r|nd.h..ne|
|00002670| 77 3a 0a 09 72 6d 20 2a | 2e 6f 20 69 66 73 0a 53 |w:..rm *|.o ifs.S|
|00002680| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00002690| 34 35 33 20 2d 6e 65 20 | 22 60 77 63 20 2d 63 20 |453 -ne |"`wc -c |
|000026a0| 4d 61 6b 65 66 69 6c 65 | 60 22 0a 74 68 65 6e 0a |Makefile|`".then.|
|000026b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 72 72 6f 72 |echo sha|r: error|
|000026c0| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 4d 61 | transmi|tting Ma|
|000026d0| 6b 65 66 69 6c 65 20 27 | 28 73 68 6f 75 6c 64 20 |kefile '|(should |
|000026e0| 68 61 76 65 20 62 65 65 | 6e 20 34 35 33 20 63 68 |have bee|n 453 ch|
|000026f0| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 65 63 |aracters|)'.fi.ec|
|00002700| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|00002710| 69 6e 67 20 64 65 76 2e | 68 20 27 28 39 31 35 20 |ing dev.|h '(915 |
|00002720| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 63 61 74 |characte|rs)'.cat|
|00002730| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00002740| 64 65 76 2e 68 0a 2f 2a | 0a 20 2a 20 49 46 53 20 |dev.h./*|. * IFS |
|00002750| 45 78 70 6c 6f 72 65 72 | 20 31 2e 30 09 28 43 29 |Explorer| 1.0.(C)|
|00002760| 31 39 38 38 20 62 79 20 | 41 6c 6c 65 6e 20 42 72 |1988 by |Allen Br|
|00002770| 61 75 6e 73 64 6f 72 66 | 20 28 61 68 67 40 6b 2e |aunsdorf| (ahg@k.|
|00002780| 63 63 2e 70 75 72 64 75 | 65 2e 65 64 75 29 0a 20 |cc.purdu|e.edu). |
|00002790| 2a 0a 20 2a 2f 0a 0a 2f | 2a 0a 20 2a 20 64 65 76 |*. */../|*. * dev|
|000027a0| 2e 68 09 44 65 76 69 63 | 65 20 6c 69 73 74 20 66 |.h.Devic|e list f|
|000027b0| 6f 72 20 49 46 53 20 45 | 78 70 6c 6f 72 65 72 20 |or IFS E|xplorer |
|000027c0| 31 2e 30 0a 20 2a 0a 20 | 2a 20 50 6c 65 61 73 65 |1.0. *. |* Please|
|000027d0| 20 61 64 64 20 79 6f 75 | 72 20 66 61 76 6f 72 69 | add you|r favori|
|000027e0| 74 65 20 6f 75 74 70 75 | 74 20 64 65 76 69 63 65 |te outpu|t device|
|000027f0| 20 74 6f 20 74 68 65 20 | 6c 69 73 74 20 62 65 6c | to the |list bel|
|00002800| 6f 77 2c 20 6f 72 20 63 | 6f 72 72 65 63 74 20 61 |ow, or c|orrect a|
|00002810| 6e 79 0a 20 2a 20 6d 69 | 73 74 61 6b 65 73 20 79 |ny. * mi|stakes y|
|00002820| 6f 75 20 62 65 6c 69 65 | 76 65 20 65 78 69 73 74 |ou belie|ve exist|
|00002830| 20 68 65 72 65 69 6e 2e | 20 20 4d 61 69 6c 20 6d | herein.| Mail m|
|00002840| 65 20 74 68 65 20 70 72 | 6f 64 75 63 74 2e 0a 20 |e the pr|oduct.. |
|00002850| 2a 0a 20 2a 20 46 6f 72 | 20 64 65 74 61 69 6c 73 |*. * For| details|
|00002860| 20 6f 6e 20 74 68 65 73 | 65 20 70 61 72 61 6d 65 | on thes|e parame|
|00002870| 74 65 72 73 2c 20 72 65 | 61 64 20 74 68 65 20 64 |ters, re|ad the d|
|00002880| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2e 0a 20 2a |ocumenta|tion.. *|
|00002890| 0a 20 2a 2f 0a 0a 2f 2a | 20 47 65 6e 65 72 69 63 |. */../*| Generic|
|000028a0| 20 73 65 74 74 69 6e 67 | 73 20 2a 2f 0a 0a 2f 2a | setting|s */../*|
|000028b0| 20 55 73 65 20 74 68 69 | 73 20 69 66 20 79 6f 75 | Use thi|s if you|
|000028c0| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 74 6f 20 72 | don't w|ant to r|
|000028d0| 65 63 6f 6d 70 69 6c 65 | 20 77 68 65 6e 20 79 6f |ecompile| when yo|
|000028e0| 75 20 63 68 61 6e 67 65 | 20 6f 75 74 70 75 74 20 |u change| output |
|000028f0| 64 65 76 69 63 65 73 20 | 2a 2f 0a 23 69 66 64 65 |devices |*/.#ifde|
|00002900| 66 20 47 45 4e 45 52 49 | 43 0a 23 64 65 66 69 6e |f GENERI|C.#defin|
|00002910| 65 20 4f 4e 4f 0a 23 65 | 6e 64 69 66 0a 0a 2f 2a |e ONO.#e|ndif../*|
|00002920| 20 41 6d 69 67 61 20 74 | 65 72 6d 69 6e 61 6c 20 | Amiga t|erminal |
|00002930| 70 72 6f 67 72 61 6d 20 | 28 68 61 73 20 62 75 67 |program |(has bug|
|00002940| 73 20 61 70 70 61 72 65 | 6e 74 6c 79 21 29 20 2a |s appare|ntly!) *|
|00002950| 2f 0a 0a 23 69 66 64 65 | 66 20 44 42 57 54 45 4b |/..#ifde|f DBWTEK|
|00002960| 09 2f 2a 20 2d 6c 34 30 | 31 34 20 2a 2f 0a 23 64 |./* -l40|14 */.#d|
|00002970| 65 66 69 6e 65 20 58 52 | 45 53 09 31 30 32 38 0a |efine XR|ES.1028.|
|00002980| 23 64 65 66 69 6e 65 20 | 59 52 45 53 09 37 38 30 |#define |YRES.780|
|00002990| 0a 23 64 65 66 69 6e 65 | 20 58 46 41 43 09 31 2e |.#define| XFAC.1.|
|000029a0| 30 0a 23 64 65 66 69 6e | 65 20 59 46 41 43 09 31 |0.#defin|e YFAC.1|
|000029b0| 2e 30 0a 23 64 65 66 69 | 6e 65 20 4f 4e 4f 0a 23 |.0.#defi|ne ONO.#|
|000029c0| 65 6e 64 69 66 0a 0a 2f | 2a 20 56 69 73 75 61 6c |endif../|* Visual|
|000029d0| 20 35 35 30 20 74 65 72 | 6d 69 6e 61 6c 20 2a 2f | 550 ter|minal */|
|000029e0| 0a 0a 23 69 66 64 65 66 | 20 56 35 35 30 09 2f 2a |..#ifdef| V550./*|
|000029f0| 20 2d 6c 34 30 31 34 20 | 2a 2f 0a 23 64 65 66 69 | -l4014 |*/.#defi|
|00002a00| 6e 65 20 58 52 45 53 09 | 31 30 32 38 0a 23 64 65 |ne XRES.|1028.#de|
|00002a10| 66 69 6e 65 20 59 52 45 | 53 09 37 38 30 0a 23 64 |fine YRE|S.780.#d|
|00002a20| 65 66 69 6e 65 20 58 46 | 41 43 09 31 2e 30 0a 23 |efine XF|AC.1.0.#|
|00002a30| 64 65 66 69 6e 65 20 59 | 46 41 43 09 31 2e 30 0a |define Y|FAC.1.0.|
|00002a40| 23 64 65 66 69 6e 65 20 | 4f 4e 4f 0a 23 65 6e 64 |#define |ONO.#end|
|00002a50| 69 66 0a 0a 2f 2a 20 45 | 70 73 6f 6e 20 45 58 2d |if../* E|pson EX-|
|00002a60| 31 30 30 30 20 70 72 69 | 6e 74 65 72 20 2a 2f 0a |1000 pri|nter */.|
|00002a70| 0a 23 69 66 64 65 66 20 | 45 58 31 30 30 30 09 2f |.#ifdef |EX1000./|
|00002a80| 2a 20 2d 6c 65 78 31 30 | 30 30 20 2a 2f 0a 23 64 |* -lex10|00 */.#d|
|00002a90| 65 66 69 6e 65 20 58 52 | 45 53 09 38 36 34 0a 23 |efine XR|ES.864.#|
|00002aa0| 64 65 66 69 6e 65 20 59 | 52 45 53 09 36 34 38 0a |define Y|RES.648.|
|00002ab0| 23 64 65 66 69 6e 65 09 | 58 46 41 43 09 31 2e 30 |#define.|XFAC.1.0|
|00002ac0| 0a 23 64 65 66 69 6e 65 | 09 59 46 41 43 09 31 2e |.#define|.YFAC.1.|
|00002ad0| 30 0a 23 65 6e 64 69 66 | 0a 53 48 41 52 5f 45 4f |0.#endif|.SHAR_EO|
|00002ae0| 46 0a 69 66 20 74 65 73 | 74 20 39 31 35 20 2d 6e |F.if tes|t 915 -n|
|00002af0| 65 20 22 60 77 63 20 2d | 63 20 64 65 76 2e 68 60 |e "`wc -|c dev.h`|
|00002b00| 22 0a 74 68 65 6e 0a 65 | 63 68 6f 20 73 68 61 72 |".then.e|cho shar|
|00002b10| 3a 20 65 72 72 6f 72 20 | 74 72 61 6e 73 6d 69 74 |: error |transmit|
|00002b20| 74 69 6e 67 20 64 65 76 | 2e 68 20 27 28 73 68 6f |ting dev|.h '(sho|
|00002b30| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 39 31 |uld have| been 91|
|00002b40| 35 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |5 charac|ters)'.f|
|00002b50| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |i.echo s|har: ext|
|00002b60| 72 61 63 74 69 6e 67 20 | 69 66 73 2e 68 20 27 28 |racting |ifs.h '(|
|00002b70| 32 35 34 30 20 63 68 61 | 72 61 63 74 65 72 73 29 |2540 cha|racters)|
|00002b80| 27 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |'.cat <<| \SHAR_E|
|00002b90| 4f 46 20 3e 20 69 66 73 | 2e 68 0a 2f 2a 0a 20 2a |OF > ifs|.h./*. *|
|00002ba0| 20 49 46 53 20 45 78 70 | 6c 6f 72 65 72 20 31 2e | IFS Exp|lorer 1.|
|00002bb0| 30 09 28 43 29 31 39 38 | 38 20 62 79 20 41 6c 6c |0.(C)198|8 by All|
|00002bc0| 65 6e 20 42 72 61 75 6e | 73 64 6f 72 66 20 28 61 |en Braun|sdorf (a|
|00002bd0| 68 67 40 6b 2e 63 63 2e | 70 75 72 64 75 65 2e 65 |hg@k.cc.|purdue.e|
|00002be0| 64 75 29 0a 20 2a 0a 20 | 2a 2f 0a 0a 2f 2a 0a 20 |du). *. |*/../*. |
|00002bf0| 2a 20 69 66 73 2e 68 09 | 49 6e 74 65 6c 6c 69 67 |* ifs.h.|Intellig|
|00002c00| 65 6e 74 20 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |ent incl|ude file|
|00002c10| 20 66 6f 72 20 49 46 53 | 20 45 78 70 6c 6f 72 65 | for IFS| Explore|
|00002c20| 72 20 31 2e 30 0a 20 2a | 0a 20 2a 20 43 6f 6e 73 |r 1.0. *|. * Cons|
|00002c30| 74 61 6e 74 73 20 68 65 | 72 65 69 6e 3a 0a 20 2a |tants he|rein:. *|
|00002c40| 0a 20 2a 09 58 4d 49 4e | 09 4d 69 6e 69 6d 75 6d |. *.XMIN|.Minimum|
|00002c50| 20 58 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 6e | X coord|inate on|
|00002c60| 20 6f 75 74 70 75 74 20 | 64 65 76 69 63 65 0a 20 | output |device. |
|00002c70| 2a 09 58 4d 41 58 09 4d | 61 78 69 6d 75 6d 20 58 |*.XMAX.M|aximum X|
|00002c80| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 6f 6e 20 6f | coordin|ate on o|
|00002c90| 75 74 70 75 74 20 64 65 | 76 69 63 65 0a 20 2a 09 |utput de|vice. *.|
|00002ca0| 59 4d 49 4e 09 4d 69 6e | 69 6d 75 6d 20 59 20 63 |YMIN.Min|imum Y c|
|00002cb0| 6f 6f 72 64 69 6e 61 74 | 65 20 6f 6e 20 6f 75 74 |oordinat|e on out|
|00002cc0| 70 75 74 20 64 65 76 69 | 63 65 0a 20 2a 09 59 4d |put devi|ce. *.YM|
|00002cd0| 41 58 09 4d 61 78 69 6d | 75 6d 20 59 20 63 6f 6f |AX.Maxim|um Y coo|
|00002ce0| 72 64 69 6e 61 74 65 20 | 6f 6e 20 6f 75 74 70 75 |rdinate |on outpu|
|00002cf0| 74 20 64 65 76 69 63 65 | 0a 20 2a 09 58 52 45 53 |t device|. *.XRES|
|00002d00| 20 3e 3d 20 4e 75 6d 62 | 65 72 20 6f 66 20 70 69 | >= Numb|er of pi|
|00002d10| 78 65 6c 73 20 69 6e 20 | 58 20 64 69 72 65 63 74 |xels in |X direct|
|00002d20| 69 6f 6e 0a 20 2a 09 59 | 52 45 53 20 3e 3d 20 4e |ion. *.Y|RES >= N|
|00002d30| 75 6d 62 65 72 20 6f 66 | 20 70 69 78 65 6c 73 20 |umber of| pixels |
|00002d40| 69 6e 20 59 20 64 69 72 | 65 63 74 69 6f 6e 0a 20 |in Y dir|ection. |
|00002d50| 2a 09 58 41 53 50 09 41 | 73 70 65 63 74 20 72 61 |*.XASP.A|spect ra|
|00002d60| 74 69 6f 20 69 6e 20 58 | 20 64 69 72 65 63 74 69 |tio in X| directi|
|00002d70| 6f 6e 20 6f 66 20 77 68 | 6f 6c 65 20 73 63 72 65 |on of wh|ole scre|
|00002d80| 65 6e 0a 20 2a 09 59 41 | 53 50 09 41 73 70 65 63 |en. *.YA|SP.Aspec|
|00002d90| 74 20 72 61 74 69 6f 20 | 69 6e 20 59 20 64 69 72 |t ratio |in Y dir|
|00002da0| 65 63 74 69 6f 6e 20 6f | 66 20 77 68 6f 6c 65 20 |ection o|f whole |
|00002db0| 73 63 72 65 65 6e 0a 20 | 2a 09 58 46 41 43 09 41 |screen. |*.XFAC.A|
|00002dc0| 73 70 65 63 74 20 72 61 | 74 69 6f 20 69 6e 20 58 |spect ra|tio in X|
|00002dd0| 20 64 69 72 65 63 74 69 | 6f 6e 20 6f 66 20 70 69 | directi|on of pi|
|00002de0| 78 65 6c 0a 20 2a 09 59 | 46 41 43 09 41 73 70 65 |xel. *.Y|FAC.Aspe|
|00002df0| 63 74 20 72 61 74 69 6f | 20 69 6e 20 59 20 64 69 |ct ratio| in Y di|
|00002e00| 72 65 63 74 69 6f 6e 20 | 6f 66 20 70 69 78 65 6c |rection |of pixel|
|00002e10| 0a 20 2a 09 4e 54 53 43 | 09 44 65 76 69 63 65 20 |. *.NTSC|.Device |
|00002e20| 69 73 20 4e 54 53 43 20 | 28 6c 69 6b 65 20 61 20 |is NTSC |(like a |
|00002e30| 54 56 20 6f 72 20 6d 6f | 73 74 20 6d 69 63 72 6f |TV or mo|st micro|
|00002e40| 63 6f 6d 70 75 74 65 72 | 73 29 0a 20 2a 0a 20 2a |computer|s). *. *|
|00002e50| 20 09 54 68 69 73 20 66 | 69 6c 65 20 61 74 74 65 | .This f|ile atte|
|00002e60| 6d 70 74 73 20 74 6f 20 | 66 69 6e 64 20 72 65 61 |mpts to |find rea|
|00002e70| 73 6f 6e 61 62 6c 65 20 | 76 61 6c 75 65 73 20 66 |sonable |values f|
|00002e80| 6f 72 20 6f 6d 69 74 74 | 65 64 20 63 6f 6e 73 74 |or omitt|ed const|
|00002e90| 61 6e 74 73 2e 0a 20 2a | 20 54 68 65 20 73 61 66 |ants.. *| The saf|
|00002ea0| 65 73 74 20 74 68 69 6e | 67 20 74 6f 20 64 6f 20 |est thin|g to do |
|00002eb0| 69 73 20 74 6f 20 64 65 | 66 69 6e 65 20 58 52 45 |is to de|fine XRE|
|00002ec0| 53 2c 20 59 52 45 53 2c | 20 58 46 41 43 2c 20 61 |S, YRES,| XFAC, a|
|00002ed0| 6e 64 20 59 46 41 43 20 | 63 6f 72 72 65 63 74 6c |nd YFAC |correctl|
|00002ee0| 79 2e 0a 20 2a 20 54 68 | 65 20 6c 65 61 73 74 20 |y.. * Th|e least |
|00002ef0| 73 61 66 65 20 28 62 75 | 74 20 68 6f 70 65 66 75 |safe (bu|t hopefu|
|00002f00| 6c 6c 79 20 4f 4b 29 20 | 74 68 69 6e 67 20 74 6f |lly OK) |thing to|
|00002f10| 20 64 6f 20 69 73 20 74 | 6f 20 64 65 66 69 6e 65 | do is t|o define|
|00002f20| 20 4e 54 53 43 20 69 66 | 20 74 68 61 74 0a 20 2a | NTSC if| that. *|
|00002f30| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 61 70 70 6c 69 | conditi|on appli|
|00002f40| 65 73 20 28 77 69 64 74 | 68 20 3d 20 68 65 69 67 |es (widt|h = heig|
|00002f50| 68 74 20 2a 20 34 2f 33 | 29 2c 20 65 6c 73 65 20 |ht * 4/3|), else |
|00002f60| 6e 6f 74 68 69 6e 67 2e | 0a 20 2a 09 44 65 66 69 |nothing.|. *.Defi|
|00002f70| 6e 65 20 74 68 69 6e 67 | 73 20 69 6e 20 74 68 65 |ne thing|s in the|
|00002f80| 20 4d 61 6b 65 66 69 6c | 65 20 72 61 74 68 65 72 | Makefil|e rather|
|00002f90| 20 74 68 61 6e 20 68 65 | 72 65 20 69 66 20 70 6f | than he|re if po|
|00002fa0| 73 73 69 62 6c 65 2e 20 | 20 52 65 70 6f 72 74 0a |ssible. | Report.|
|00002fb0| 20 2a 20 61 6e 79 20 70 | 72 6f 62 6c 65 6d 73 20 | * any p|roblems |
|00002fc0| 74 6f 20 74 68 65 20 61 | 75 74 68 6f 72 2e 0a 20 |to the a|uthor.. |
|00002fd0| 2a 0a 20 2a 2f 0a 0a 23 | 69 66 20 28 64 65 66 69 |*. */..#|if (defi|
|00002fe0| 6e 65 64 28 58 52 45 53 | 29 20 26 26 20 21 64 65 |ned(XRES|) && !de|
|00002ff0| 66 69 6e 65 64 28 58 4d | 49 4e 29 20 26 26 20 21 |fined(XM|IN) && !|
|00003000| 64 65 66 69 6e 65 64 28 | 58 4d 41 58 29 29 0a 23 |defined(|XMAX)).#|
|00003010| 20 64 65 66 69 6e 65 20 | 58 4d 41 58 09 28 58 52 | define |XMAX.(XR|
|00003020| 45 53 2d 31 29 0a 23 20 | 64 65 66 69 6e 65 20 58 |ES-1).# |define X|
|00003030| 4d 49 4e 09 30 0a 23 65 | 6e 64 69 66 0a 0a 23 69 |MIN.0.#e|ndif..#i|
|00003040| 66 6e 64 65 66 20 58 4d | 49 4e 0a 23 20 69 66 20 |fndef XM|IN.# if |
|00003050| 28 64 65 66 69 6e 65 64 | 28 58 52 45 53 29 20 26 |(defined|(XRES) &|
|00003060| 26 20 64 65 66 69 6e 65 | 64 28 58 4d 41 58 29 29 |& define|d(XMAX))|
|00003070| 0a 23 20 20 64 65 66 69 | 6e 65 20 58 4d 49 4e 09 |.# defi|ne XMIN.|
|00003080| 28 28 58 4d 41 58 29 2d | 28 58 52 45 53 2d 31 29 |((XMAX)-|(XRES-1)|
|00003090| 29 0a 23 20 65 6c 73 65 | 0a 23 20 20 64 65 66 69 |).# else|.# defi|
|000030a0| 6e 65 20 58 4d 49 4e 09 | 30 0a 23 20 65 6e 64 69 |ne XMIN.|0.# endi|
|000030b0| 66 0a 23 65 6e 64 69 66 | 0a 0a 23 69 66 6e 64 65 |f.#endif|..#ifnde|
|000030c0| 66 20 58 4d 41 58 0a 23 | 20 69 66 64 65 66 20 58 |f XMAX.#| ifdef X|
|000030d0| 52 45 53 0a 23 20 20 64 | 65 66 69 6e 65 20 58 4d |RES.# d|efine XM|
|000030e0| 41 58 09 28 28 58 4d 49 | 4e 29 2b 28 58 52 45 53 |AX.((XMI|N)+(XRES|
|000030f0| 2d 31 29 29 0a 23 20 65 | 6c 73 65 0a 23 20 20 64 |-1)).# e|lse.# d|
|00003100| 65 66 69 6e 65 20 58 4d | 41 58 09 32 30 34 37 0a |efine XM|AX.2047.|
|00003110| 23 20 65 6e 64 69 66 0a | 23 65 6e 64 69 66 0a 0a |# endif.|#endif..|
|00003120| 23 69 66 6e 64 65 66 20 | 58 52 45 53 0a 23 20 64 |#ifndef |XRES.# d|
|00003130| 65 66 69 6e 65 20 58 52 | 45 53 09 28 28 58 4d 41 |efine XR|ES.((XMA|
|00003140| 58 29 2d 28 58 4d 49 4e | 29 2b 31 29 0a 23 65 6e |X)-(XMIN|)+1).#en|
|00003150| 64 69 66 0a 0a 23 69 66 | 20 28 64 65 66 69 6e 65 |dif..#if| (define|
|00003160| 64 28 59 52 45 53 29 20 | 26 26 20 21 64 65 66 69 |d(YRES) |&& !defi|
|00003170| 6e 65 64 28 59 4d 49 4e | 29 20 26 26 20 21 64 65 |ned(YMIN|) && !de|
|00003180| 66 69 6e 65 64 28 59 4d | 41 58 29 29 0a 23 20 64 |fined(YM|AX)).# d|
|00003190| 65 66 69 6e 65 20 59 4d | 41 58 09 28 59 52 45 53 |efine YM|AX.(YRES|
|000031a0| 2d 31 29 0a 23 20 64 65 | 66 69 6e 65 20 59 4d 49 |-1).# de|fine YMI|
|000031b0| 4e 09 30 0a 23 65 6e 64 | 69 66 0a 0a 23 69 66 6e |N.0.#end|if..#ifn|
|000031c0| 64 65 66 20 59 4d 49 4e | 0a 23 20 69 66 20 28 64 |def YMIN|.# if (d|
|000031d0| 65 66 69 6e 65 64 28 59 | 52 45 53 29 20 26 26 20 |efined(Y|RES) && |
|000031e0| 64 65 66 69 6e 65 64 28 | 59 4d 41 58 29 29 0a 23 |defined(|YMAX)).#|
|000031f0| 20 20 64 65 66 69 6e 65 | 20 59 4d 49 4e 09 28 28 | define| YMIN.((|
|00003200| 59 4d 41 58 29 2d 28 59 | 52 45 53 2d 31 29 29 0a |YMAX)-(Y|RES-1)).|
|00003210| 23 20 65 6c 73 65 0a 23 | 20 20 64 65 66 69 6e 65 |# else.#| define|
|00003220| 20 59 4d 49 4e 09 30 0a | 23 20 65 6e 64 69 66 0a | YMIN.0.|# endif.|
|00003230| 23 65 6e 64 69 66 0a 0a | 23 69 66 6e 64 65 66 20 |#endif..|#ifndef |
|00003240| 59 4d 41 58 0a 23 20 69 | 66 64 65 66 20 59 52 45 |YMAX.# i|fdef YRE|
|00003250| 53 0a 23 20 20 64 65 66 | 69 6e 65 20 59 4d 41 58 |S.# def|ine YMAX|
|00003260| 09 28 28 59 4d 49 4e 29 | 2b 28 59 52 45 53 2d 31 |.((YMIN)|+(YRES-1|
|00003270| 29 29 0a 23 20 65 6c 73 | 65 0a 23 20 20 64 65 66 |)).# els|e.# def|
|00003280| 69 6e 65 20 59 4d 41 58 | 09 32 30 34 37 0a 23 20 |ine YMAX|.2047.# |
|00003290| 65 6e 64 69 66 0a 23 65 | 6e 64 69 66 0a 0a 23 69 |endif.#e|ndif..#i|
|000032a0| 66 6e 64 65 66 20 59 52 | 45 53 0a 23 20 64 65 66 |fndef YR|ES.# def|
|000032b0| 69 6e 65 20 59 52 45 53 | 09 28 28 59 4d 41 58 29 |ine YRES|.((YMAX)|
|000032c0| 2d 28 59 4d 49 4e 29 2b | 31 29 0a 23 65 6e 64 69 |-(YMIN)+|1).#endi|
|000032d0| 66 0a 0a 23 69 66 6e 64 | 65 66 20 58 41 53 50 0a |f..#ifnd|ef XASP.|
|000032e0| 23 20 69 66 64 65 66 20 | 58 46 41 43 0a 23 20 20 |# ifdef |XFAC.# |
|000032f0| 64 65 66 69 6e 65 20 58 | 41 53 50 09 28 28 58 46 |define X|ASP.((XF|
|00003300| 41 43 29 2a 28 58 52 45 | 53 29 29 0a 23 20 65 6c |AC)*(XRE|S)).# el|
|00003310| 73 65 0a 23 20 20 69 66 | 64 65 66 20 59 41 53 50 |se.# if|def YASP|
|00003320| 0a 23 20 20 20 64 65 66 | 69 6e 65 20 58 41 53 50 |.# def|ine XASP|
|00003330| 09 59 41 53 50 0a 23 20 | 20 20 69 66 64 65 66 20 |.YASP.# | ifdef |
|00003340| 4e 54 53 43 0a 23 20 20 | 20 20 75 6e 64 65 66 20 |NTSC.# | undef |
|00003350| 58 41 53 50 0a 23 20 20 | 20 20 64 65 66 69 6e 65 |XASP.# | define|
|00003360| 20 58 41 53 50 09 28 34 | 2e 30 2a 59 41 53 50 2f | XASP.(4|.0*YASP/|
|00003370| 33 2e 30 29 0a 23 20 20 | 20 65 6e 64 69 66 0a 23 |3.0).# | endif.#|
|00003380| 20 20 65 6c 73 65 0a 23 | 20 20 20 64 65 66 69 6e | else.#| defin|
|00003390| 65 20 58 41 53 50 09 31 | 2e 30 0a 23 20 20 20 69 |e XASP.1|.0.# i|
|000033a0| 66 64 65 66 20 4e 54 53 | 43 0a 23 20 20 20 20 75 |fdef NTS|C.# u|
|000033b0| 6e 64 65 66 20 58 41 53 | 50 0a 23 20 20 20 20 64 |ndef XAS|P.# d|
|000033c0| 65 66 69 6e 65 20 58 41 | 53 50 09 34 2e 30 0a 23 |efine XA|SP.4.0.#|
|000033d0| 20 20 20 65 6e 64 69 66 | 0a 23 20 20 65 6e 64 69 | endif|.# endi|
|000033e0| 66 0a 23 20 65 6e 64 69 | 66 0a 23 65 6e 64 69 66 |f.# endi|f.#endif|
|000033f0| 0a 0a 23 69 66 6e 64 65 | 66 20 59 41 53 50 0a 23 |..#ifnde|f YASP.#|
|00003400| 20 69 66 64 65 66 20 59 | 46 41 43 0a 23 20 20 64 | ifdef Y|FAC.# d|
|00003410| 65 66 69 6e 65 20 59 41 | 53 50 09 28 28 59 46 41 |efine YA|SP.((YFA|
|00003420| 43 29 2a 28 59 52 45 53 | 29 29 0a 23 20 65 6c 73 |C)*(YRES|)).# els|
|00003430| 65 0a 23 20 20 64 65 66 | 69 6e 65 20 59 41 53 50 |e.# def|ine YASP|
|00003440| 09 58 41 53 50 0a 23 20 | 20 69 66 64 65 66 20 4e |.XASP.# | ifdef N|
|00003450| 54 53 43 0a 23 20 20 20 | 75 6e 64 65 66 20 59 41 |TSC.# |undef YA|
|00003460| 53 50 0a 23 20 20 20 64 | 65 66 69 6e 65 20 59 41 |SP.# d|efine YA|
|00003470| 53 50 09 28 33 2e 30 2a | 58 41 53 50 2f 34 2e 30 |SP.(3.0*|XASP/4.0|
|00003480| 29 0a 23 20 20 65 6e 64 | 69 66 0a 23 20 65 6e 64 |).# end|if.# end|
|00003490| 69 66 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 20 54 68 |if.#endi|f../* Th|
|000034a0| 69 73 20 69 73 20 6f 6e | 6c 79 20 72 69 67 68 74 |is is on|ly right|
|000034b0| 20 69 66 20 28 28 58 41 | 53 50 29 20 3e 20 28 59 | if ((XA|SP) > (Y|
|000034c0| 41 53 50 29 29 2c 20 62 | 75 74 20 69 74 27 73 20 |ASP)), b|ut it's |
|000034d0| 66 69 78 65 64 20 69 6e | 20 6d 61 69 6e 28 29 20 |fixed in| main() |
|000034e0| 2a 2f 0a 0a 23 69 66 6e | 64 65 66 20 58 46 41 43 |*/..#ifn|def XFAC|
|000034f0| 0a 23 20 69 66 6e 64 65 | 66 20 59 46 41 43 0a 23 |.# ifnde|f YFAC.#|
|00003500| 20 20 64 65 66 69 6e 65 | 20 59 46 41 43 09 31 2e | define| YFAC.1.|
|00003510| 30 0a 23 20 65 6e 64 69 | 66 0a 23 20 64 65 66 69 |0.# endi|f.# defi|
|00003520| 6e 65 20 58 46 41 43 09 | 28 28 28 58 41 53 50 29 |ne XFAC.|(((XASP)|
|00003530| 2a 28 59 52 45 53 29 2a | 28 59 46 41 43 29 29 2f |*(YRES)*|(YFAC))/|
|00003540| 28 28 59 41 53 50 29 2a | 28 58 52 45 53 29 29 29 |((YASP)*|(XRES)))|
|00003550| 0a 23 65 6c 73 65 0a 23 | 20 69 66 6e 64 65 66 20 |.#else.#| ifndef |
|00003560| 59 46 41 43 0a 23 20 20 | 64 65 66 69 6e 65 20 59 |YFAC.# |define Y|
|00003570| 46 41 43 09 31 2e 30 0a | 23 20 65 6e 64 69 66 0a |FAC.1.0.|# endif.|
|00003580| 23 65 6e 64 69 66 0a 53 | 48 41 52 5f 45 4f 46 0a |#endif.S|HAR_EOF.|
|00003590| 69 66 20 74 65 73 74 20 | 32 35 34 30 20 2d 6e 65 |if test |2540 -ne|
|000035a0| 20 22 60 77 63 20 2d 63 | 20 69 66 73 2e 68 60 22 | "`wc -c| ifs.h`"|
|000035b0| 0a 74 68 65 6e 0a 65 63 | 68 6f 20 73 68 61 72 3a |.then.ec|ho shar:|
|000035c0| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000035d0| 69 6e 67 20 69 66 73 2e | 68 20 27 28 73 68 6f 75 |ing ifs.|h '(shou|
|000035e0| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 32 35 34 |ld have |been 254|
|000035f0| 30 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |0 charac|ters)'.f|
|00003600| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |i.echo s|har: ext|
|00003610| 72 61 63 74 69 6e 67 20 | 72 6e 64 2e 68 20 27 28 |racting |rnd.h '(|
|00003620| 36 31 30 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |610 char|acters)'|
|00003630| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003640| 46 20 3e 20 72 6e 64 2e | 68 0a 2f 2a 0a 20 2a 20 |F > rnd.|h./*. * |
|00003650| 49 46 53 20 45 78 70 6c | 6f 72 65 72 20 31 2e 30 |IFS Expl|orer 1.0|
|00003660| 09 28 43 29 31 39 38 38 | 20 62 79 20 41 6c 6c 65 |.(C)1988| by Alle|
|00003670| 6e 20 42 72 61 75 6e 73 | 64 6f 72 66 20 28 61 68 |n Brauns|dorf (ah|
|00003680| 67 40 6b 2e 63 63 2e 70 | 75 72 64 75 65 2e 65 64 |g@k.cc.p|urdue.ed|
|00003690| 75 29 0a 20 2a 0a 20 2a | 2f 0a 0a 2f 2a 0a 20 2a |u). *. *|/../*. *|
|000036a0| 20 72 6e 64 2e 68 09 48 | 6f 77 20 64 6f 20 49 20 | rnd.h.H|ow do I |
|000036b0| 67 65 74 20 61 20 72 61 | 6e 64 6f 6d 20 6e 75 6d |get a ra|ndom num|
|000036c0| 62 65 72 20 62 65 74 77 | 65 65 6e 20 30 20 61 6e |ber betw|een 0 an|
|000036d0| 64 20 31 20 69 6e 63 6c | 75 73 69 76 65 3f 0a 20 |d 1 incl|usive?. |
|000036e0| 2a 0a 20 2a 20 50 69 63 | 6b 20 6f 6e 65 20 6f 66 |*. * Pic|k one of|
|000036f0| 20 74 68 65 73 65 20 61 | 6e 64 20 70 75 74 20 69 | these a|nd put i|
|00003700| 74 20 6f 6e 20 74 68 65 | 20 22 52 4e 44 20 3d 20 |t on the| "RND = |
|00003710| 22 20 6c 69 6e 65 20 69 | 6e 20 74 68 65 20 4d 61 |" line i|n the Ma|
|00003720| 6b 65 66 69 6c 65 2e 0a | 20 2a 20 54 68 69 73 20 |kefile..| * This |
|00003730| 6c 69 73 74 20 69 73 20 | 74 65 72 72 69 62 6c 79 |list is |terribly|
|00003740| 20 69 6e 63 6f 6d 70 6c | 65 74 65 2c 20 62 75 74 | incompl|ete, but|
|00003750| 20 77 6f 72 6b 73 20 6f | 6e 20 65 76 65 72 79 20 | works o|n every |
|00003760| 6d 61 63 68 69 6e 65 20 | 27 72 6f 75 6e 64 20 74 |machine |'round t|
|00003770| 68 65 73 65 0a 20 2a 20 | 70 61 72 74 73 2e 20 20 |hese. * |parts. |
|00003780| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 20 69 |If you h|ave an i|
|00003790| 6d 70 6f 72 74 61 6e 74 | 20 61 64 64 69 74 69 6f |mportant| additio|
|000037a0| 6e 2c 20 73 65 6e 64 20 | 69 74 20 74 6f 20 6d 65 |n, send |it to me|
|000037b0| 2e 0a 20 2a 0a 20 2a 2f | 0a 0a 2f 2a 20 46 6f 72 |.. *. */|../* For|
|000037c0| 20 42 53 44 20 34 2e 33 | 20 2a 2f 0a 0a 23 69 66 | BSD 4.3| */..#if|
|000037d0| 64 65 66 20 52 41 4e 44 | 4f 4d 0a 65 78 74 65 72 |def RAND|OM.exter|
|000037e0| 6e 20 6c 6f 6e 67 20 72 | 61 6e 64 6f 6d 28 29 3b |n long r|andom();|
|000037f0| 0a 23 64 65 66 69 6e 65 | 20 52 4e 44 09 28 72 61 |.#define| RND.(ra|
|00003800| 6e 64 6f 6d 28 29 2f 32 | 31 34 37 34 38 33 36 34 |ndom()/2|14748364|
|00003810| 37 2e 30 29 0a 23 65 6e | 64 69 66 0a 0a 2f 2a 20 |7.0).#en|dif../* |
|00003820| 46 6f 72 20 53 59 53 20 | 56 3f 20 20 41 74 20 6c |For SYS |V? At l|
|00003830| 65 61 73 74 20 61 74 20 | 6f 75 72 20 68 6f 75 73 |east at |our hous|
|00003840| 65 21 20 2a 2f 0a 0a 23 | 69 66 64 65 66 20 45 52 |e! */..#|ifdef ER|
|00003850| 41 4e 44 34 38 0a 65 78 | 74 65 72 6e 20 64 6f 75 |AND48.ex|tern dou|
|00003860| 62 6c 65 20 65 72 61 6e | 64 34 38 28 29 3b 0a 75 |ble eran|d48();.u|
|00003870| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 65 73 |nsigned |short es|
|00003880| 74 75 66 66 5b 33 5d 3b | 0a 23 64 65 66 69 6e 65 |tuff[3];|.#define|
|00003890| 20 52 4e 44 09 65 72 61 | 6e 64 34 38 28 65 73 74 | RND.era|nd48(est|
|000038a0| 75 66 66 29 0a 23 65 6e | 64 69 66 0a 53 48 41 52 |uff).#en|dif.SHAR|
|000038b0| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 36 31 30 |_EOF.if |test 610|
|000038c0| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 72 6e 64 | -ne "`w|c -c rnd|
|000038d0| 2e 68 60 22 0a 74 68 65 | 6e 0a 65 63 68 6f 20 73 |.h`".the|n.echo s|
|000038e0| 68 61 72 3a 20 65 72 72 | 6f 72 20 74 72 61 6e 73 |har: err|or trans|
|000038f0| 6d 69 74 74 69 6e 67 20 | 72 6e 64 2e 68 20 27 28 |mitting |rnd.h '(|
|00003900| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00003910| 20 36 31 30 20 63 68 61 | 72 61 63 74 65 72 73 29 | 610 cha|racters)|
|00003920| 27 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |'.fi.ech|o shar: |
|00003930| 65 78 74 72 61 63 74 69 | 6e 67 20 69 66 73 2e 63 |extracti|ng ifs.c|
|00003940| 20 27 28 33 38 34 34 20 | 63 68 61 72 61 63 74 65 | '(3844 |characte|
|00003950| 72 73 29 27 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |rs)'.cat| << \SHA|
|00003960| 52 5f 45 4f 46 20 3e 20 | 69 66 73 2e 63 0a 2f 2a |R_EOF > |ifs.c./*|
|00003970| 0a 20 2a 20 49 46 53 20 | 45 78 70 6c 6f 72 65 72 |. * IFS |Explorer|
|00003980| 20 31 2e 30 09 28 43 29 | 31 39 38 38 20 62 79 20 | 1.0.(C)|1988 by |
|00003990| 41 6c 6c 65 6e 20 42 72 | 61 75 6e 73 64 6f 72 66 |Allen Br|aunsdorf|
|000039a0| 20 28 61 68 67 40 6b 2e | 63 63 2e 70 75 72 64 75 | (ahg@k.|cc.purdu|
|000039b0| 65 2e 65 64 75 29 0a 20 | 2a 0a 20 2a 20 41 6c 6c |e.edu). |*. * All|
|000039c0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000039d0| 20 77 6f 72 6c 64 77 69 | 64 65 2e 20 20 54 68 69 | worldwi|de. Thi|
|000039e0| 73 20 70 72 6f 67 72 61 | 6d 20 6d 61 79 20 62 65 |s progra|m may be|
|000039f0| 20 66 72 65 65 6c 79 20 | 63 6f 70 69 65 64 20 61 | freely |copied a|
|00003a00| 6e 64 0a 20 2a 20 64 69 | 73 74 72 69 62 75 74 65 |nd. * di|stribute|
|00003a10| 64 20 66 6f 72 20 6e 6f | 6e 70 72 6f 66 69 74 20 |d for no|nprofit |
|00003a20| 75 73 65 73 2e 20 20 41 | 6e 79 20 63 6f 6d 6d 65 |uses. A|ny comme|
|00003a30| 72 63 69 61 6c 20 75 73 | 65 20 77 69 74 68 6f 75 |rcial us|e withou|
|00003a40| 74 20 65 78 70 72 65 73 | 73 0a 20 2a 20 70 65 72 |t expres|s. * per|
|00003a50| 6d 69 73 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 61 |mission |of the a|
|00003a60| 75 74 68 6f 72 20 69 73 | 20 66 6f 72 62 69 64 64 |uthor is| forbidd|
|00003a70| 65 6e 2c 20 61 73 20 69 | 73 20 72 65 6d 6f 76 69 |en, as i|s removi|
|00003a80| 6e 67 20 74 68 69 73 20 | 6e 6f 74 69 63 65 2e 0a |ng this |notice..|
|00003a90| 20 2a 0a 20 2a 2f 0a 0a | 2f 2a 0a 20 2a 20 69 66 | *. */..|/*. * if|
|00003aa0| 73 2e 63 09 49 46 53 20 | 44 65 63 6f 64 65 72 20 |s.c.IFS |Decoder |
|00003ab0| 62 79 20 41 6c 6c 65 6e | 20 42 72 61 75 6e 73 64 |by Allen| Braunsd|
|00003ac0| 6f 72 66 0a 20 2a 20 09 | 09 62 61 73 65 64 20 6f |orf. * .|.based o|
|00003ad0| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |n inform|ation fo|
|00003ae0| 75 6e 64 20 69 6e 20 42 | 79 74 65 20 31 39 38 38 |und in B|yte 1988|
|00003af0| 2f 30 31 20 70 70 2e 20 | 32 31 35 2d 32 32 33 0a |/01 pp. |215-223.|
|00003b00| 20 2a 0a 20 2a 20 54 68 | 72 6f 75 67 68 6f 75 74 | *. * Th|roughout|
|00003b10| 3a 0a 20 2a 09 6d 09 4e | 75 6d 62 65 72 20 6f 66 |:. *.m.N|umber of|
|00003b20| 20 74 72 61 6e 73 66 6f | 72 6d 73 0a 20 2a 09 6e | transfo|rms. *.n|
|00003b30| 09 4e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 72 61 |.Number |of itera|
|00003b40| 74 69 6f 6e 73 0a 20 2a | 09 6f 09 4e 75 6d 62 65 |tions. *|.o.Numbe|
|00003b50| 72 20 6f 66 20 69 6e 69 | 74 69 61 6c 20 70 6f 69 |r of ini|tial poi|
|00003b60| 6e 74 73 20 6f 6d 69 74 | 74 65 64 20 66 72 6f 6d |nts omit|ted from|
|00003b70| 20 70 6c 6f 74 0a 20 2a | 09 61 2d 66 09 49 46 53 | plot. *|.a-f.IFS|
|00003b80| 20 6d 61 74 72 69 78 20 | 63 6f 65 66 66 69 63 69 | matrix |coeffici|
|00003b90| 65 6e 74 73 0a 20 2a 09 | 70 5b 6e 5d 09 50 72 6f |ents. *.|p[n].Pro|
|00003ba0| 62 61 62 69 6c 69 74 79 | 20 6f 66 20 70 6f 69 6e |bability| of poin|
|00003bb0| 74 20 62 65 69 6e 67 20 | 69 6e 20 74 72 61 6e 73 |t being |in trans|
|00003bc0| 66 6f 72 6d 20 6e 0a 20 | 2a 2f 0a 0a 23 69 6e 63 |form n. |*/..#inc|
|00003bd0| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 0a |lude <st|dio.h>..|
|00003be0| 23 69 6e 63 6c 75 64 65 | 20 22 64 65 76 2e 68 22 |#include| "dev.h"|
|00003bf0| 0a 23 69 6e 63 6c 75 64 | 65 20 22 69 66 73 2e 68 |.#includ|e "ifs.h|
|00003c00| 22 0a 23 69 6e 63 6c 75 | 64 65 20 22 72 6e 64 2e |".#inclu|de "rnd.|
|00003c10| 68 22 0a 0a 23 64 65 66 | 69 6e 65 20 4d 41 58 4c |h"..#def|ine MAXL|
|00003c20| 49 4e 45 20 38 30 0a 0a | 69 6e 74 0a 6d 61 69 6e |INE 80..|int.main|
|00003c30| 28 61 72 67 63 2c 20 61 | 72 67 76 29 0a 69 6e 74 |(argc, a|rgv).int|
|00003c40| 20 61 72 67 63 3b 0a 63 | 68 61 72 20 2a 2a 61 72 | argc;.c|har **ar|
|00003c50| 67 76 3b 0a 7b 0a 09 65 | 78 74 65 72 6e 20 63 68 |gv;.{..e|xtern ch|
|00003c60| 61 72 20 2a 63 61 6c 6c | 6f 63 28 29 3b 0a 09 65 |ar *call|oc();..e|
|00003c70| 78 74 65 72 6e 20 64 6f | 75 62 6c 65 20 61 74 6f |xtern do|uble ato|
|00003c80| 66 28 29 3b 0a 09 65 78 | 74 65 72 6e 20 76 6f 69 |f();..ex|tern voi|
|00003c90| 64 20 65 78 69 74 28 29 | 3b 0a 09 76 6f 69 64 20 |d exit()|;..void |
|00003ca0| 70 6c 6f 74 28 29 3b 0a | 0a 09 63 68 61 72 20 73 |plot();.|..char s|
|00003cb0| 62 57 5b 4d 41 58 4c 49 | 4e 45 5d 3b 0a 09 46 49 |bW[MAXLI|NE];..FI|
|00003cc0| 4c 45 20 2a 69 6e 3b 0a | 09 66 6c 6f 61 74 20 2a |LE *in;.|.float *|
|00003cd0| 61 2c 20 2a 62 2c 20 2a | 63 2c 20 2a 64 2c 20 2a |a, *b, *|c, *d, *|
|00003ce0| 65 2c 20 2a 66 2c 20 2a | 70 3b 0a 09 66 6c 6f 61 |e, *f, *|p;..floa|
|00003cf0| 74 20 78 73 2c 20 79 73 | 2c 20 78 74 2c 20 79 74 |t xs, ys|, xt, yt|
|00003d00| 3b 0a 09 66 6c 6f 61 74 | 20 70 74 20 3d 20 30 2e |;..float| pt = 0.|
|00003d10| 30 2c 20 70 6b 2c 20 78 | 20 3d 20 30 2e 30 2c 20 |0, pk, x| = 0.0, |
|00003d20| 79 20 3d 20 30 2e 30 2c | 20 6e 65 77 78 2c 20 6e |y = 0.0,| newx, n|
|00003d30| 65 77 79 2c 20 58 46 61 | 63 2c 20 59 46 61 63 2c |ewy, XFa|c, YFac,|
|00003d40| 20 78 6f 2c 20 79 6f 3b | 0a 09 69 6e 74 20 6f 20 | xo, yo;|..int o |
|00003d50| 3d 20 31 30 2c 20 69 2c | 20 6b 2c 20 6d 20 3d 20 |= 10, i,| k, m = |
|00003d60| 2d 31 2c 20 6e 20 3d 20 | 58 52 45 53 2a 59 52 45 |-1, n = |XRES*YRE|
|00003d70| 53 2c 20 61 72 67 20 3d | 20 31 3b 0a 0a 09 2f 2a |S, arg =| 1;.../*|
|00003d80| 20 50 72 69 6e 74 20 76 | 65 72 73 69 6f 6e 20 6e | Print v|ersion n|
|00003d90| 75 6d 62 65 72 20 2a 2f | 0a 0a 09 66 70 72 69 6e |umber */|...fprin|
|00003da0| 74 66 28 73 74 64 65 72 | 72 2c 20 22 49 46 53 20 |tf(stder|r, "IFS |
|00003db0| 45 78 70 6c 6f 72 65 72 | 20 31 2e 30 20 62 79 20 |Explorer| 1.0 by |
|00003dc0| 41 6c 6c 65 6e 20 42 72 | 61 75 6e 73 64 6f 72 66 |Allen Br|aunsdorf|
|00003dd0| 5c 6e 22 29 3b 0a 0a 09 | 2f 2a 20 43 6f 72 72 65 |\n");...|/* Corre|
|00003de0| 63 74 69 6f 6e 20 66 6f | 72 20 74 61 6c 6c 20 73 |ction fo|r tall s|
|00003df0| 63 72 65 65 6e 73 20 2a | 2f 0a 0a 09 58 46 61 63 |creens *|/...XFac|
|00003e00| 20 3d 20 58 46 41 43 3b | 0a 09 59 46 61 63 20 3d | = XFAC;|..YFac =|
|00003e10| 20 59 46 41 43 3b 0a 09 | 69 66 20 28 28 58 41 53 | YFAC;..|if ((XAS|
|00003e20| 50 29 20 3e 20 28 59 41 | 53 50 29 29 20 7b 0a 09 |P) > (YA|SP)) {..|
|00003e30| 09 58 46 61 63 20 2f 3d | 20 59 46 61 63 3b 0a 09 |.XFac /=| YFac;..|
|00003e40| 09 59 46 61 63 20 2f 3d | 20 59 46 61 63 3b 0a 09 |.YFac /=| YFac;..|
|00003e50| 09 78 6f 20 3d 20 28 58 | 52 45 53 2a 58 46 61 63 |.xo = (X|RES*XFac|
|00003e60| 2d 59 52 45 53 2a 59 46 | 61 63 29 2f 28 32 2e 30 |-YRES*YF|ac)/(2.0|
|00003e70| 2a 58 46 61 63 29 3b 0a | 09 09 79 6f 20 3d 20 30 |*XFac);.|..yo = 0|
|00003e80| 2e 30 3b 0a 09 7d 20 65 | 6c 73 65 20 7b 0a 09 09 |.0;..} e|lse {...|
|00003e90| 58 46 61 63 20 2f 3d 20 | 58 46 61 63 3b 0a 09 09 |XFac /= |XFac;...|
|00003ea0| 59 46 61 63 20 2f 3d 20 | 58 46 61 63 3b 0a 09 09 |YFac /= |XFac;...|
|00003eb0| 78 6f 20 3d 20 30 2e 30 | 3b 0a 09 09 79 6f 20 3d |xo = 0.0|;...yo =|
|00003ec0| 20 28 59 52 45 53 2a 59 | 46 61 63 2d 58 52 45 53 | (YRES*Y|Fac-XRES|
|00003ed0| 2a 58 46 61 63 29 2f 28 | 32 2e 30 2a 59 46 61 63 |*XFac)/(|2.0*YFac|
|00003ee0| 29 3b 0a 09 7d 0a 23 69 | 66 64 65 66 20 4f 4e 4f |);..}.#i|fdef ONO|
|00003ef0| 09 2f 2a 20 4e 6f 20 6f | 66 66 73 65 74 20 2a 2f |./* No o|ffset */|
|00003f00| 0a 09 78 6f 20 3d 20 30 | 2e 30 3b 0a 09 79 6f 20 |..xo = 0|.0;..yo |
|00003f10| 3d 20 30 2e 30 3b 0a 23 | 65 6e 64 69 66 0a 0a 09 |= 0.0;.#|endif...|
|00003f20| 69 66 20 28 32 20 3e 20 | 61 72 67 63 29 20 7b 0a |if (2 > |argc) {.|
|00003f30| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00003f40| 2c 20 22 55 73 61 67 65 | 3a 20 25 73 20 2d 6e 20 |, "Usage|: %s -n |
|00003f50| 70 6f 69 6e 74 73 20 2d | 6f 20 6f 6d 69 74 74 65 |points -|o omitte|
|00003f60| 64 20 49 46 53 66 69 6c | 65 5c 6e 22 2c 0a 09 09 |d IFSfil|e\n",...|
|00003f70| 09 61 72 67 76 5b 30 5d | 29 3b 0a 09 09 65 78 69 |.argv[0]|);...exi|
|00003f80| 74 28 2d 31 29 3b 0a 09 | 7d 0a 09 77 68 69 6c 65 |t(-1);..|}..while|
|00003f90| 20 28 61 72 67 20 3c 20 | 28 61 72 67 63 2d 31 29 | (arg < |(argc-1)|
|00003fa0| 29 20 7b 0a 09 09 69 66 | 20 28 27 2d 27 20 3d 3d |) {...if| ('-' ==|
|00003fb0| 20 61 72 67 76 5b 61 72 | 67 5d 5b 30 5d 29 20 7b | argv[ar|g][0]) {|
|00003fc0| 0a 09 09 09 73 77 69 74 | 63 68 20 28 61 72 67 76 |....swit|ch (argv|
|00003fd0| 5b 61 72 67 5d 5b 31 5d | 29 20 7b 0a 09 09 09 63 |[arg][1]|) {....c|
|00003fe0| 61 73 65 20 27 6e 27 3a | 0a 09 09 09 09 6e 20 3d |ase 'n':|.....n =|
|00003ff0| 20 61 74 6f 69 28 61 72 | 67 76 5b 2b 2b 61 72 67 | atoi(ar|gv[++arg|
|00004000| 5d 29 3b 0a 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |]);.....|break;..|
|00004010| 09 09 63 61 73 65 20 27 | 6f 27 3a 0a 09 09 09 09 |..case '|o':.....|
|00004020| 6f 20 3d 20 61 74 6f 69 | 28 61 72 67 76 5b 2b 2b |o = atoi|(argv[++|
|00004030| 61 72 67 5d 29 3b 0a 09 | 09 09 09 62 72 65 61 6b |arg]);..|...break|
|00004040| 3b 0a 09 09 09 64 65 66 | 61 75 6c 74 3a 0a 09 09 |;....def|ault:...|
|00004050| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00004060| 2c 20 22 45 72 72 6f 72 | 3a 20 62 61 64 20 6f 70 |, "Error|: bad op|
|00004070| 74 69 6f 6e 20 5c 27 25 | 73 5c 27 5c 6e 22 2c 0a |tion \'%|s\'\n",.|
|00004080| 09 09 09 09 09 61 72 67 | 76 5b 61 72 67 5d 29 3b |.....arg|v[arg]);|
|00004090| 0a 09 09 09 09 65 78 69 | 74 28 2d 31 29 3b 0a 09 |.....exi|t(-1);..|
|000040a0| 09 09 7d 0a 09 09 09 2b | 2b 61 72 67 3b 0a 09 09 |..}....+|+arg;...|
|000040b0| 7d 20 65 6c 73 65 20 7b | 0a 09 09 09 66 70 72 69 |} else {|....fpri|
|000040c0| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 45 72 72 |ntf(stde|rr, "Err|
|000040d0| 6f 72 3a 20 6f 6e 65 20 | 66 69 6c 65 20 6f 6e 6c |or: one |file onl|
|000040e0| 79 20 28 66 6f 72 20 6e | 6f 77 29 5c 6e 22 29 3b |y (for n|ow)\n");|
|000040f0| 0a 09 09 09 65 78 69 74 | 28 2d 31 29 3b 0a 09 09 |....exit|(-1);...|
|00004100| 7d 0a 09 7d 0a 09 6e 20 | 2b 3d 20 6f 3b 0a 09 66 |}..}..n |+= o;..f|
|00004110| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00004120| 49 74 65 72 61 74 69 6f | 6e 73 3a 20 25 64 5c 6e |Iteratio|ns: %d\n|
|00004130| 22 2c 20 6e 29 3b 0a 09 | 66 70 72 69 6e 74 66 28 |", n);..|fprintf(|
|00004140| 73 74 64 65 72 72 2c 20 | 22 4f 6d 69 74 74 69 6e |stderr, |"Omittin|
|00004150| 67 3a 20 25 64 5c 6e 22 | 2c 20 6f 29 3b 0a 0a 09 |g: %d\n"|, o);...|
|00004160| 69 66 20 28 4e 55 4c 4c | 20 3d 3d 20 28 69 6e 20 |if (NULL| == (in |
|00004170| 3d 20 66 6f 70 65 6e 28 | 61 72 67 76 5b 61 72 67 |= fopen(|argv[arg|
|00004180| 5d 2c 20 22 72 22 29 29 | 29 20 7b 0a 09 09 66 70 |], "r"))|) {...fp|
|00004190| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 45 |rintf(st|derr, "E|
|000041a0| 72 72 6f 72 3a 20 63 61 | 6e 27 74 20 6f 70 65 6e |rror: ca|n't open|
|000041b0| 20 69 6e 70 75 74 20 66 | 69 6c 65 5c 6e 22 29 3b | input f|ile\n");|
|000041c0| 0a 09 09 65 78 69 74 28 | 2d 31 29 3b 0a 09 7d 0a |...exit(|-1);..}.|
|000041d0| 09 77 68 69 6c 65 20 28 | 66 67 65 74 73 28 73 62 |.while (|fgets(sb|
|000041e0| 57 2c 20 4d 41 58 4c 49 | 4e 45 2c 20 69 6e 29 29 |W, MAXLI|NE, in))|
|000041f0| 20 7b 0a 09 09 2b 2b 6d | 3b 0a 09 7d 0a 09 66 63 | {...++m|;..}..fc|
|00004200| 6c 6f 73 65 28 69 6e 29 | 3b 0a 0a 09 69 66 20 28 |lose(in)|;...if (|
|00004210| 2d 31 20 3d 3d 20 6d 29 | 20 7b 0a 09 09 66 70 72 |-1 == m)| {...fpr|
|00004220| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 45 72 |intf(std|err, "Er|
|00004230| 72 6f 72 3a 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |ror: inp|ut file |
|00004240| 65 6d 70 74 79 3f 21 5c | 6e 22 29 3b 0a 09 09 65 |empty?!\|n");...e|
|00004250| 78 69 74 28 2d 31 29 3b | 0a 09 7d 0a 09 69 66 20 |xit(-1);|..}..if |
|00004260| 28 30 20 3d 3d 20 6d 29 | 20 7b 0a 09 09 66 70 72 |(0 == m)| {...fpr|
|00004270| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 45 72 |intf(std|err, "Er|
|00004280| 72 6f 72 3a 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |ror: inp|ut file |
|00004290| 69 6e 76 61 6c 69 64 5c | 6e 22 29 3b 0a 09 09 65 |invalid\|n");...e|
|000042a0| 78 69 74 28 2d 31 29 3b | 0a 09 7d 0a 09 61 20 3d |xit(-1);|..}..a =|
|000042b0| 20 28 66 6c 6f 61 74 20 | 2a 29 63 61 6c 6c 6f 63 | (float |*)calloc|
|000042c0| 28 28 75 6e 73 69 67 6e | 65 64 29 6d 2c 20 73 69 |((unsign|ed)m, si|
|000042d0| 7a 65 6f 66 28 66 6c 6f | 61 74 29 29 3b 0a 09 62 |zeof(flo|at));..b|
|000042e0| 20 3d 20 28 66 6c 6f 61 | 74 20 2a 29 63 61 6c 6c | = (floa|t *)call|
|000042f0| 6f 63 28 28 75 6e 73 69 | 67 6e 65 64 29 6d 2c 20 |oc((unsi|gned)m, |
|00004300| 73 69 7a 65 6f 66 28 66 | 6c 6f 61 74 29 29 3b 0a |sizeof(f|loat));.|
|00004310| 09 63 20 3d 20 28 66 6c | 6f 61 74 20 2a 29 63 61 |.c = (fl|oat *)ca|
|00004320| 6c 6c 6f 63 28 28 75 6e | 73 69 67 6e 65 64 29 6d |lloc((un|signed)m|
|00004330| 2c 20 73 69 7a 65 6f 66 | 28 66 6c 6f 61 74 29 29 |, sizeof|(float))|
|00004340| 3b 0a 09 64 20 3d 20 28 | 66 6c 6f 61 74 20 2a 29 |;..d = (|float *)|
|00004350| 63 61 6c 6c 6f 63 28 28 | 75 6e 73 69 67 6e 65 64 |calloc((|unsigned|
|00004360| 29 6d 2c 20 73 69 7a 65 | 6f 66 28 66 6c 6f 61 74 |)m, size|of(float|
|00004370| 29 29 3b 0a 09 65 20 3d | 20 28 66 6c 6f 61 74 20 |));..e =| (float |
|00004380| 2a 29 63 61 6c 6c 6f 63 | 28 28 75 6e 73 69 67 6e |*)calloc|((unsign|
|00004390| 65 64 29 6d 2c 20 73 69 | 7a 65 6f 66 28 66 6c 6f |ed)m, si|zeof(flo|
|000043a0| 61 74 29 29 3b 0a 09 66 | 20 3d 20 28 66 6c 6f 61 |at));..f| = (floa|
|000043b0| 74 20 2a 29 63 61 6c 6c | 6f 63 28 28 75 6e 73 69 |t *)call|oc((unsi|
|000043c0| 67 6e 65 64 29 6d 2c 20 | 73 69 7a 65 6f 66 28 66 |gned)m, |sizeof(f|
|000043d0| 6c 6f 61 74 29 29 3b 0a | 09 70 20 3d 20 28 66 6c |loat));.|.p = (fl|
|000043e0| 6f 61 74 20 2a 29 63 61 | 6c 6c 6f 63 28 28 75 6e |oat *)ca|lloc((un|
|000043f0| 73 69 67 6e 65 64 29 6d | 2c 20 73 69 7a 65 6f 66 |signed)m|, sizeof|
|00004400| 28 66 6c 6f 61 74 29 29 | 3b 0a 0a 09 69 66 20 28 |(float))|;...if (|
|00004410| 4e 55 4c 4c 20 3d 3d 20 | 28 69 6e 20 3d 20 66 6f |NULL == |(in = fo|
|00004420| 70 65 6e 28 61 72 67 76 | 5b 61 72 67 5d 2c 20 22 |pen(argv|[arg], "|
|00004430| 72 22 29 29 29 20 7b 0a | 09 09 66 70 72 69 6e 74 |r"))) {.|..fprint|
|00004440| 66 28 73 74 64 65 72 72 | 2c 20 22 45 72 72 6f 72 |f(stderr|, "Error|
|00004450| 3a 20 63 61 6e 27 74 20 | 6f 70 65 6e 20 69 6e 70 |: can't |open inp|
|00004460| 75 74 20 66 69 6c 65 5c | 6e 22 29 3b 0a 09 09 65 |ut file\|n");...e|
|00004470| 78 69 74 28 2d 31 29 3b | 0a 09 7d 0a 09 66 70 72 |xit(-1);|..}..fpr|
|00004480| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 54 72 |intf(std|err, "Tr|
|00004490| 61 6e 73 66 6f 72 6d 73 | 3a 20 25 64 5c 6e 22 2c |ansforms|: %d\n",|
|000044a0| 20 6d 29 3b 0a 09 66 6f | 72 20 28 69 20 3d 20 30 | m);..fo|r (i = 0|
|000044b0| 3b 20 69 20 3c 20 6d 3b | 20 2b 2b 69 29 20 7b 0a |; i < m;| ++i) {.|
|000044c0| 09 09 66 73 63 61 6e 66 | 28 69 6e 2c 20 22 25 66 |..fscanf|(in, "%f|
|000044d0| 20 25 66 20 25 66 20 25 | 66 20 25 66 20 25 66 20 | %f %f %|f %f %f |
|000044e0| 25 66 22 2c 20 61 2b 69 | 2c 20 62 2b 69 2c 20 63 |%f", a+i|, b+i, c|
|000044f0| 2b 69 2c 20 64 2b 69 2c | 0a 09 09 09 65 2b 69 2c |+i, d+i,|....e+i,|
|00004500| 20 66 2b 69 2c 20 70 2b | 69 29 3b 0a 09 09 66 70 | f+i, p+|i);...fp|
|00004510| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 5c |rintf(st|derr, "\|
|00004520| 74 25 66 20 25 66 20 25 | 66 20 25 66 20 25 66 20 |t%f %f %|f %f %f |
|00004530| 25 66 20 25 66 5c 6e 22 | 2c 20 61 5b 69 5d 2c 20 |%f %f\n"|, a[i], |
|00004540| 62 5b 69 5d 2c 20 63 5b | 69 5d 2c 0a 09 09 09 64 |b[i], c[|i],....d|
|00004550| 5b 69 5d 2c 20 65 5b 69 | 5d 2c 20 66 5b 69 5d 2c |[i], e[i|], f[i],|
|00004560| 20 70 5b 69 5d 29 3b 0a | 09 09 70 74 20 2b 3d 20 | p[i]);.|..pt += |
|00004570| 70 5b 69 5d 3b 0a 09 09 | 70 5b 69 5d 20 3d 20 70 |p[i];...|p[i] = p|
|00004580| 74 3b 0a 09 7d 0a 09 66 | 73 63 61 6e 66 28 69 6e |t;..}..f|scanf(in|
|00004590| 2c 20 22 25 66 20 25 66 | 20 25 66 20 25 66 22 2c |, "%f %f| %f %f",|
|000045a0| 20 26 78 73 2c 20 26 79 | 73 2c 20 26 78 74 2c 20 | &xs, &y|s, &xt, |
|000045b0| 26 79 74 29 3b 0a 09 66 | 70 72 69 6e 74 66 28 73 |&yt);..f|printf(s|
|000045c0| 74 64 65 72 72 2c 20 22 | 54 72 61 6e 73 66 6f 72 |tderr, "|Transfor|
|000045d0| 6d 69 6e 67 20 62 79 3a | 20 25 66 20 25 66 20 25 |ming by:| %f %f %|
|000045e0| 66 20 25 66 5c 6e 22 2c | 20 78 73 2c 20 79 73 2c |f %f\n",| xs, ys,|
|000045f0| 20 78 74 2c 20 79 74 29 | 3b 0a 09 69 66 20 28 28 | xt, yt)|;..if ((|
|00004600| 30 2e 30 31 20 3c 20 70 | 74 2d 31 2e 30 29 20 7c |0.01 < p|t-1.0) ||
|00004610| 7c 20 28 30 2e 30 31 20 | 3c 20 31 2e 30 2d 70 74 || (0.01 |< 1.0-pt|
|00004620| 29 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |)) {...f|printf(s|
|00004630| 74 64 65 72 72 2c 20 22 | 45 72 72 6f 72 3a 20 6e |tderr, "|Error: n|
|00004640| 6f 6e 75 6e 69 74 79 20 | 70 72 6f 62 61 62 69 6c |onunity |probabil|
|00004650| 69 74 79 3a 20 25 66 5c | 6e 22 2c 20 70 74 29 3b |ity: %f\|n", pt);|
|00004660| 0a 09 09 65 78 69 74 28 | 2d 31 29 3b 0a 09 7d 0a |...exit(|-1);..}.|
|00004670| 09 66 63 6c 6f 73 65 28 | 69 6e 29 3b 0a 0a 09 73 |.fclose(|in);...s|
|00004680| 70 61 63 65 28 58 4d 49 | 4e 2c 20 59 4d 49 4e 2c |pace(XMI|N, YMIN,|
|00004690| 20 58 4d 41 58 2c 20 59 | 4d 41 58 29 3b 0a 09 6f | XMAX, Y|MAX);..o|
|000046a0| 70 65 6e 70 6c 28 29 3b | 0a 09 65 72 61 73 65 28 |penpl();|..erase(|
|000046b0| 29 3b 0a 09 77 68 69 6c | 65 20 28 6e 2d 2d 29 20 |);..whil|e (n--) |
|000046c0| 7b 0a 09 09 70 6b 20 3d | 20 52 4e 44 3b 0a 09 09 |{...pk =| RND;...|
|000046d0| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|000046e0| 6d 3b 20 2b 2b 69 29 20 | 7b 0a 09 09 09 69 66 20 |m; ++i) |{....if |
|000046f0| 28 70 6b 20 3c 3d 20 70 | 5b 69 5d 29 20 7b 0a 09 |(pk <= p|[i]) {..|
|00004700| 09 09 09 6b 20 3d 20 69 | 3b 0a 09 09 09 09 62 72 |...k = i|;.....br|
|00004710| 65 61 6b 3b 0a 09 09 09 | 7d 0a 09 09 7d 0a 09 09 |eak;....|}...}...|
|00004720| 6e 65 77 78 20 3d 20 61 | 5b 6b 5d 2a 78 2b 62 5b |newx = a|[k]*x+b[|
|00004730| 6b 5d 2a 79 2b 65 5b 6b | 5d 3b 0a 09 09 6e 65 77 |k]*y+e[k|];...new|
|00004740| 79 20 3d 20 63 5b 6b 5d | 2a 78 2b 64 5b 6b 5d 2a |y = c[k]|*x+d[k]*|
|00004750| 79 2b 66 5b 6b 5d 3b 0a | 09 09 78 20 3d 20 6e 65 |y+f[k];.|..x = ne|
|00004760| 77 78 3b 0a 09 09 79 20 | 3d 20 6e 65 77 79 3b 0a |wx;...y |= newy;.|
|00004770| 09 09 69 66 20 28 6f 29 | 20 7b 0a 09 09 09 2d 2d |..if (o)| {....--|
|00004780| 6f 3b 0a 09 09 7d 20 65 | 6c 73 65 20 7b 0a 09 09 |o;...} e|lse {...|
|00004790| 09 70 6c 6f 74 28 28 69 | 6e 74 29 28 28 78 2a 78 |.plot((i|nt)((x*x|
|000047a0| 73 2a 58 46 41 43 2b 78 | 74 29 2a 28 58 52 45 53 |s*XFAC+x|t)*(XRES|
|000047b0| 2d 31 29 2b 78 6f 29 2b | 58 4d 49 4e 2c 0a 09 09 |-1)+xo)+|XMIN,...|
|000047c0| 09 09 28 69 6e 74 29 28 | 28 79 2a 79 73 2a 59 46 |..(int)(|(y*ys*YF|
|000047d0| 41 43 2b 79 74 29 2a 28 | 59 52 45 53 2d 31 29 2b |AC+yt)*(|YRES-1)+|
|000047e0| 79 6f 29 2b 59 4d 49 4e | 29 3b 0a 09 09 7d 0a 09 |yo)+YMIN|);...}..|
|000047f0| 7d 0a 09 63 6c 6f 73 65 | 70 6c 28 29 3b 0a 7d 0a |}..close|pl();.}.|
|00004800| 0a 76 6f 69 64 0a 70 6c | 6f 74 28 78 2c 20 79 29 |.void.pl|ot(x, y)|
|00004810| 0a 69 6e 74 20 78 2c 20 | 79 3b 0a 7b 0a 09 69 66 |.int x, |y;.{..if|
|00004820| 20 28 28 58 4d 49 4e 20 | 3c 3d 20 78 29 20 26 26 | ((XMIN |<= x) &&|
|00004830| 20 28 59 4d 49 4e 20 3c | 3d 20 79 29 20 26 26 20 | (YMIN <|= y) && |
|00004840| 28 58 4d 41 58 20 3e 3d | 20 78 29 20 26 26 20 28 |(XMAX >=| x) && (|
|00004850| 59 4d 41 58 20 3e 3d 20 | 79 29 29 20 7b 0a 09 09 |YMAX >= |y)) {...|
|00004860| 70 6f 69 6e 74 28 78 2c | 20 79 29 3b 0a 09 7d 0a |point(x,| y);..}.|
|00004870| 7d 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |}.SHAR_E|OF.if te|
|00004880| 73 74 20 33 38 34 34 20 | 2d 6e 65 20 22 60 77 63 |st 3844 |-ne "`wc|
|00004890| 20 2d 63 20 69 66 73 2e | 63 60 22 0a 74 68 65 6e | -c ifs.|c`".then|
|000048a0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 72 72 6f |.echo sh|ar: erro|
|000048b0| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 69 |r transm|itting i|
|000048c0| 66 73 2e 63 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |fs.c '(s|hould ha|
|000048d0| 76 65 20 62 65 65 6e 20 | 33 38 34 34 20 63 68 61 |ve been |3844 cha|
|000048e0| 72 61 63 74 65 72 73 29 | 27 0a 66 69 0a 65 63 68 |racters)|'.fi.ech|
|000048f0| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|00004900| 6e 67 20 61 2e 69 66 73 | 20 27 28 31 32 36 20 63 |ng a.ifs| '(126 c|
|00004910| 68 61 72 61 63 74 65 72 | 73 29 27 0a 63 61 74 20 |haracter|s)'.cat |
|00004920| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 61 |<< \SHAR|_EOF > a|
|00004930| 2e 69 66 73 0a 30 2e 35 | 30 09 30 2e 30 30 09 31 |.ifs.0.5|0.0.00.1|
|00004940| 2e 30 30 09 30 2e 30 30 | 09 30 2e 30 30 09 30 2e |.00.0.00|.0.00.0.|
|00004950| 30 30 09 30 2e 33 33 0a | 30 2e 35 30 09 30 2e 30 |00.0.33.|0.50.0.0|
|00004960| 30 09 2d 31 2e 30 30 09 | 30 2e 30 30 09 30 2e 35 |0.-1.00.|0.00.0.5|
|00004970| 30 09 31 2e 30 30 09 30 | 2e 33 33 0a 30 2e 35 30 |0.1.00.0|.33.0.50|
|00004980| 09 30 2e 30 30 09 30 2e | 30 30 09 30 2e 30 30 09 |.0.00.0.|00.0.00.|
|00004990| 30 2e 32 35 09 30 2e 35 | 30 09 30 2e 33 34 0a 31 |0.25.0.5|0.0.34.1|
|000049a0| 2e 30 30 09 31 2e 30 30 | 09 30 2e 30 30 09 30 2e |.00.1.00|.0.00.0.|
|000049b0| 30 30 0a 53 48 41 52 5f | 45 4f 46 0a 69 66 20 74 |00.SHAR_|EOF.if t|
|000049c0| 65 73 74 20 31 32 36 20 | 2d 6e 65 20 22 60 77 63 |est 126 |-ne "`wc|
|000049d0| 20 2d 63 20 61 2e 69 66 | 73 60 22 0a 74 68 65 6e | -c a.if|s`".then|
|000049e0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 72 72 6f |.echo sh|ar: erro|
|000049f0| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 61 |r transm|itting a|
|00004a00| 2e 69 66 73 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |.ifs '(s|hould ha|
|00004a10| 76 65 20 62 65 65 6e 20 | 31 32 36 20 63 68 61 72 |ve been |126 char|
|00004a20| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 65 63 68 6f |acters)'|.fi.echo|
|00004a30| 20 73 68 61 72 3a 20 65 | 78 74 72 61 63 74 69 6e | shar: e|xtractin|
|00004a40| 67 20 61 72 63 68 69 6d | 65 64 65 73 2e 69 66 73 |g archim|edes.ifs|
|00004a50| 20 27 28 31 30 32 20 63 | 68 61 72 61 63 74 65 72 | '(102 c|haracter|
|00004a60| 73 29 27 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |s)'.cat |<< \SHAR|
|00004a70| 5f 45 4f 46 20 3e 20 61 | 72 63 68 69 6d 65 64 65 |_EOF > a|rchimede|
|00004a80| 73 2e 69 66 73 0a 30 2e | 39 39 37 32 37 37 32 20 |s.ifs.0.|9972772 |
|00004a90| 30 2e 30 30 36 31 31 39 | 32 20 2d 30 2e 30 30 36 |0.006119|2 -0.006|
|00004aa0| 31 31 39 32 20 30 2e 39 | 39 37 32 37 37 32 20 30 |1192 0.9|972772 0|
|00004ab0| 2e 30 20 30 2e 30 20 30 | 2e 39 39 39 0a 30 2e 30 |.0 0.0 0|.999.0.0|
|00004ac0| 09 30 2e 30 09 30 2e 30 | 09 30 2e 30 09 2d 31 2e |.0.0.0.0|.0.0.-1.|
|00004ad0| 30 09 30 2e 30 09 30 2e | 30 30 31 0a 30 2e 35 09 |0.0.0.0.|001.0.5.|
|00004ae0| 30 2e 35 09 30 2e 35 09 | 30 2e 35 0a 53 48 41 52 |0.5.0.5.|0.5.SHAR|
|00004af0| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 31 30 32 |_EOF.if |test 102|
|00004b00| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 61 72 63 | -ne "`w|c -c arc|
|00004b10| 68 69 6d 65 64 65 73 2e | 69 66 73 60 22 0a 74 68 |himedes.|ifs`".th|
|00004b20| 65 6e 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 72 |en.echo |shar: er|
|00004b30| 72 6f 72 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ror tran|smitting|
|00004b40| 20 61 72 63 68 69 6d 65 | 64 65 73 2e 69 66 73 20 | archime|des.ifs |
|00004b50| 27 28 73 68 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |'(should| have be|
|00004b60| 65 6e 20 31 30 32 20 63 | 68 61 72 61 63 74 65 72 |en 102 c|haracter|
|00004b70| 73 29 27 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |s)'.fi.e|cho shar|
|00004b80| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 62 6f 78 |: extrac|ting box|
|00004b90| 2e 69 66 73 20 27 28 31 | 36 30 20 63 68 61 72 61 |.ifs '(1|60 chara|
|00004ba0| 63 74 65 72 73 29 27 0a | 63 61 74 20 3c 3c 20 5c |cters)'.|cat << \|
|00004bb0| 53 48 41 52 5f 45 4f 46 | 20 3e 20 62 6f 78 2e 69 |SHAR_EOF| > box.i|
|00004bc0| 66 73 0a 30 2e 35 30 09 | 30 2e 35 30 09 30 2e 30 |fs.0.50.|0.50.0.0|
|00004bd0| 30 09 30 2e 30 30 09 30 | 2e 30 30 09 30 2e 30 30 |0.0.00.0|.00.0.00|
|00004be0| 09 30 2e 32 35 0a 30 2e | 35 30 09 30 2e 35 30 09 |.0.25.0.|50.0.50.|
|00004bf0| 30 2e 30 30 09 30 2e 30 | 30 09 30 2e 30 30 09 31 |0.00.0.0|0.0.00.1|
|00004c00| 2e 30 30 09 30 2e 32 35 | 0a 30 2e 30 30 09 30 2e |.00.0.25|.0.00.0.|
|00004c10| 30 30 09 30 2e 35 30 09 | 30 2e 35 30 09 30 2e 30 |00.0.50.|0.50.0.0|
|00004c20| 30 09 30 2e 30 30 09 30 | 2e 32 35 0a 30 2e 30 30 |0.0.00.0|.25.0.00|
|00004c30| 09 30 2e 30 30 09 30 2e | 35 30 09 30 2e 35 30 09 |.0.00.0.|50.0.50.|
|00004c40| 31 2e 30 30 09 30 2e 30 | 30 09 30 2e 32 35 0a 31 |1.00.0.0|0.0.25.1|
|00004c50| 2e 30 30 09 31 2e 30 30 | 09 30 2e 30 30 09 30 2e |.00.1.00|.0.00.0.|
|00004c60| 30 30 0a 53 48 41 52 5f | 45 4f 46 0a 69 66 20 74 |00.SHAR_|EOF.if t|
|00004c70| 65 73 74 20 31 36 30 20 | 2d 6e 65 20 22 60 77 63 |est 160 |-ne "`wc|
|00004c80| 20 2d 63 20 62 6f 78 2e | 69 66 73 60 22 0a 74 68 | -c box.|ifs`".th|
|00004c90| 65 6e 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 72 |en.echo |shar: er|
|00004ca0| 72 6f 72 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ror tran|smitting|
|00004cb0| 20 62 6f 78 2e 69 66 73 | 20 27 28 73 68 6f 75 6c | box.ifs| '(shoul|
|00004cc0| 64 20 68 61 76 65 20 62 | 65 65 6e 20 31 36 30 20 |d have b|een 160 |
|00004cd0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00004ce0| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00004cf0| 63 74 69 6e 67 20 62 6f | 78 65 73 2e 69 66 73 20 |cting bo|xes.ifs |
|00004d00| 27 28 32 30 30 20 63 68 | 61 72 61 63 74 65 72 73 |'(200 ch|aracters|
|00004d10| 29 27 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |)'.cat <|< \SHAR_|
|00004d20| 45 4f 46 20 3e 20 62 6f | 78 65 73 2e 69 66 73 0a |EOF > bo|xes.ifs.|
|00004d30| 30 2e 35 30 09 30 2e 35 | 30 09 30 2e 30 30 09 30 |0.50.0.5|0.0.00.0|
|00004d40| 2e 30 30 09 30 2e 30 30 | 09 30 2e 30 30 09 30 2e |.00.0.00|.0.00.0.|
|00004d50| 31 36 36 0a 30 2e 35 30 | 09 30 2e 35 30 09 30 2e |166.0.50|.0.50.0.|
|00004d60| 30 30 09 30 2e 30 30 09 | 30 2e 30 30 09 31 2e 30 |00.0.00.|0.00.1.0|
|00004d70| 30 09 30 2e 31 36 36 0a | 30 2e 30 30 09 30 2e 30 |0.0.166.|0.00.0.0|
|00004d80| 30 09 30 2e 35 30 09 30 | 2e 35 30 09 30 2e 30 30 |0.0.50.0|.50.0.00|
|00004d90| 09 30 2e 30 30 09 30 2e | 31 36 36 0a 30 2e 30 30 |.0.00.0.|166.0.00|
|00004da0| 09 30 2e 30 30 09 30 2e | 35 30 09 30 2e 35 30 09 |.0.00.0.|50.0.50.|
|00004db0| 31 2e 30 30 09 30 2e 30 | 30 09 30 2e 31 36 36 0a |1.00.0.0|0.0.166.|
|00004dc0| 30 2e 35 30 09 30 2e 30 | 30 09 30 2e 30 30 09 30 |0.50.0.0|0.0.00.0|
|00004dd0| 2e 35 30 09 30 2e 32 35 | 09 30 2e 32 35 09 30 2e |.50.0.25|.0.25.0.|
|00004de0| 33 33 36 0a 31 2e 30 30 | 09 31 2e 30 30 09 30 2e |336.1.00|.1.00.0.|
|00004df0| 30 30 09 30 2e 30 30 0a | 53 48 41 52 5f 45 4f 46 |00.0.00.|SHAR_EOF|
|00004e00| 0a 69 66 20 74 65 73 74 | 20 32 30 30 20 2d 6e 65 |.if test| 200 -ne|
|00004e10| 20 22 60 77 63 20 2d 63 | 20 62 6f 78 65 73 2e 69 | "`wc -c| boxes.i|
|00004e20| 66 73 60 22 0a 74 68 65 | 6e 0a 65 63 68 6f 20 73 |fs`".the|n.echo s|
|00004e30| 68 61 72 3a 20 65 72 72 | 6f 72 20 74 72 61 6e 73 |har: err|or trans|
|00004e40| 6d 69 74 74 69 6e 67 20 | 62 6f 78 65 73 2e 69 66 |mitting |boxes.if|
|00004e50| 73 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |s '(shou|ld have |
|00004e60| 62 65 65 6e 20 32 30 30 | 20 63 68 61 72 61 63 74 |been 200| charact|
|00004e70| 65 72 73 29 27 0a 66 69 | 0a 65 63 68 6f 20 73 68 |ers)'.fi|.echo sh|
|00004e80| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 63 |ar: extr|acting c|
|00004e90| 69 72 63 6c 65 2e 69 66 | 73 20 27 28 31 30 33 20 |ircle.if|s '(103 |
|00004ea0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 63 61 74 |characte|rs)'.cat|
|00004eb0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00004ec0| 63 69 72 63 6c 65 2e 69 | 66 73 0a 30 2e 39 39 39 |circle.i|fs.0.999|
|00004ed0| 39 38 31 31 20 2d 30 2e | 30 30 36 31 33 35 38 38 |9811 -0.|00613588|
|00004ee0| 20 30 2e 30 30 36 31 33 | 35 38 38 20 30 2e 39 39 | 0.00613|588 0.99|
|00004ef0| 39 39 38 31 31 09 30 2e | 30 09 30 2e 30 09 30 2e |99811.0.|0.0.0.0.|
|00004f00| 39 39 39 0a 30 2e 30 09 | 30 2e 30 09 30 2e 30 09 |999.0.0.|0.0.0.0.|
|00004f10| 30 2e 30 09 31 2e 30 09 | 30 2e 30 09 30 2e 30 30 |0.0.1.0.|0.0.0.00|
|00004f20| 31 0a 30 2e 35 09 30 2e | 35 09 30 2e 35 09 30 2e |1.0.5.0.|5.0.5.0.|
|00004f30| 35 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |5.SHAR_E|OF.if te|
|00004f40| 73 74 20 31 30 33 20 2d | 6e 65 20 22 60 77 63 20 |st 103 -|ne "`wc |
|00004f50| 2d 63 20 63 69 72 63 6c | 65 2e 69 66 73 60 22 0a |-c circl|e.ifs`".|
|00004f60| 74 68 65 6e 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |then.ech|o shar: |
|00004f70| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00004f80| 6e 67 20 63 69 72 63 6c | 65 2e 69 66 73 20 27 28 |ng circl|e.ifs '(|
|00004f90| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00004fa0| 20 31 30 33 20 63 68 61 | 72 61 63 74 65 72 73 29 | 103 cha|racters)|
|00004fb0| 27 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |'.fi.ech|o shar: |
|00004fc0| 65 78 74 72 61 63 74 69 | 6e 67 20 63 72 6f 73 73 |extracti|ng cross|
|00004fd0| 2e 69 66 73 20 27 28 31 | 37 30 20 63 68 61 72 61 |.ifs '(1|70 chara|
|00004fe0| 63 74 65 72 73 29 27 0a | 63 61 74 20 3c 3c 20 5c |cters)'.|cat << \|
|00004ff0| 53 48 41 52 5f 45 4f 46 | 20 3e 20 63 72 6f 73 73 |SHAR_EOF| > cross|
|00005000| 2e 69 66 73 0a 2d 30 2e | 35 30 09 2d 30 2e 35 30 |.ifs.-0.|50.-0.50|
|00005010| 09 30 2e 30 30 09 30 2e | 30 30 09 30 2e 35 30 09 |.0.00.0.|00.0.50.|
|00005020| 30 2e 30 30 09 30 2e 32 | 35 0a 2d 30 2e 35 30 09 |0.00.0.2|5.-0.50.|
|00005030| 2d 30 2e 35 30 09 30 2e | 30 30 09 30 2e 30 30 09 |-0.50.0.|00.0.00.|
|00005040| 2d 30 2e 35 30 09 30 2e | 30 30 09 30 2e 32 35 0a |-0.50.0.|00.0.25.|
|00005050| 30 2e 30 30 09 30 2e 30 | 30 09 2d 30 2e 35 30 09 |0.00.0.0|0.-0.50.|
|00005060| 2d 30 2e 35 30 09 30 2e | 30 30 09 30 2e 35 30 09 |-0.50.0.|00.0.50.|
|00005070| 30 2e 32 35 0a 30 2e 30 | 30 09 30 2e 30 30 09 2d |0.25.0.0|0.0.00.-|
|00005080| 30 2e 35 30 09 2d 30 2e | 35 30 09 30 2e 30 30 09 |0.50.-0.|50.0.00.|
|00005090| 2d 30 2e 35 30 09 30 2e | 32 35 0a 30 2e 35 30 09 |-0.50.0.|25.0.50.|
|000050a0| 30 2e 35 30 09 30 2e 35 | 30 09 30 2e 35 30 0a 53 |0.50.0.5|0.0.50.S|
|000050b0| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|000050c0| 31 37 30 20 2d 6e 65 20 | 22 60 77 63 20 2d 63 20 |170 -ne |"`wc -c |
|000050d0| 63 72 6f 73 73 2e 69 66 | 73 60 22 0a 74 68 65 6e |cross.if|s`".then|
|000050e0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 72 72 6f |.echo sh|ar: erro|
|000050f0| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 63 |r transm|itting c|
|00005100| 72 6f 73 73 2e 69 66 73 | 20 27 28 73 68 6f 75 6c |ross.ifs| '(shoul|
|00005110| 64 20 68 61 76 65 20 62 | 65 65 6e 20 31 37 30 20 |d have b|een 170 |
|00005120| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00005130| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00005140| 63 74 69 6e 67 20 64 72 | 61 67 6f 6e 2e 69 66 73 |cting dr|agon.ifs|
|00005150| 20 27 28 38 31 20 63 68 | 61 72 61 63 74 65 72 73 | '(81 ch|aracters|
|00005160| 29 27 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |)'.cat <|< \SHAR_|
|00005170| 45 4f 46 20 3e 20 64 72 | 61 67 6f 6e 2e 69 66 73 |EOF > dr|agon.ifs|
|00005180| 0a 30 2e 35 09 2d 30 2e | 35 09 30 2e 35 09 30 2e |.0.5.-0.|5.0.5.0.|
|00005190| 35 09 31 2e 30 09 30 2e | 30 09 30 2e 35 0a 30 2e |5.1.0.0.|0.0.5.0.|
|000051a0| 35 09 2d 30 2e 35 09 30 | 2e 35 09 30 2e 35 09 2d |5.-0.5.0|.5.0.5.-|
|000051b0| 31 2e 30 09 30 2e 30 09 | 30 2e 35 0a 30 2e 31 38 |1.0.0.0.|0.5.0.18|
|000051c0| 37 35 09 30 2e 31 38 37 | 35 09 30 2e 35 09 30 2e |75.0.187|5.0.5.0.|
|000051d0| 35 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |5.SHAR_E|OF.if te|
|000051e0| 73 74 20 38 31 20 2d 6e | 65 20 22 60 77 63 20 2d |st 81 -n|e "`wc -|
|000051f0| 63 20 64 72 61 67 6f 6e | 2e 69 66 73 60 22 0a 74 |c dragon|.ifs`".t|
|00005200| 68 65 6e 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |hen.echo| shar: e|
|00005210| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00005220| 67 20 64 72 61 67 6f 6e | 2e 69 66 73 20 27 28 73 |g dragon|.ifs '(s|
|00005230| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|00005240| 38 31 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |81 chara|cters)'.|
|00005250| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |fi.echo |shar: ex|
|00005260| 74 72 61 63 74 69 6e 67 | 20 66 65 72 6e 2e 69 66 |tracting| fern.if|
|00005270| 73 20 27 28 31 36 33 20 | 63 68 61 72 61 63 74 65 |s '(163 |characte|
|00005280| 72 73 29 27 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |rs)'.cat| << \SHA|
|00005290| 52 5f 45 4f 46 20 3e 20 | 66 65 72 6e 2e 69 66 73 |R_EOF > |fern.ifs|
|000052a0| 0a 30 2e 30 30 09 30 2e | 30 30 09 30 2e 30 30 09 |.0.00.0.|00.0.00.|
|000052b0| 30 2e 31 36 09 30 2e 30 | 30 09 30 2e 30 30 09 30 |0.16.0.0|0.0.00.0|
|000052c0| 2e 30 31 0a 30 2e 32 30 | 09 2d 30 2e 32 36 09 30 |.01.0.20|.-0.26.0|
|000052d0| 2e 32 33 09 30 2e 32 32 | 09 30 2e 30 30 09 31 2e |.23.0.22|.0.00.1.|
|000052e0| 36 30 09 30 2e 30 37 0a | 2d 30 2e 31 35 09 30 2e |60.0.07.|-0.15.0.|
|000052f0| 32 38 09 30 2e 32 36 09 | 30 2e 32 34 09 30 2e 30 |28.0.26.|0.24.0.0|
|00005300| 30 09 30 2e 34 34 09 30 | 2e 30 37 0a 30 2e 38 35 |0.0.44.0|.07.0.85|
|00005310| 09 30 2e 30 34 09 2d 30 | 2e 30 34 09 30 2e 38 35 |.0.04.-0|.04.0.85|
|00005320| 09 30 2e 30 30 09 31 2e | 36 30 09 30 2e 38 35 0a |.0.00.1.|60.0.85.|
|00005330| 30 2e 31 30 09 30 2e 31 | 30 09 30 2e 35 30 09 30 |0.10.0.1|0.0.50.0|
|00005340| 2e 30 30 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |.00.SHAR|_EOF.if |
|00005350| 74 65 73 74 20 31 36 33 | 20 2d 6e 65 20 22 60 77 |test 163| -ne "`w|
|00005360| 63 20 2d 63 20 66 65 72 | 6e 2e 69 66 73 60 22 0a |c -c fer|n.ifs`".|
|00005370| 74 68 65 6e 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |then.ech|o shar: |
|00005380| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00005390| 6e 67 20 66 65 72 6e 2e | 69 66 73 20 27 28 73 68 |ng fern.|ifs '(sh|
|000053a0| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 31 |ould hav|e been 1|
|000053b0| 36 33 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |63 chara|cters)'.|
|000053c0| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |fi.echo |shar: ex|
|000053d0| 74 72 61 63 74 69 6e 67 | 20 72 69 6e 67 2e 69 66 |tracting| ring.if|
|000053e0| 73 20 27 28 37 35 20 63 | 68 61 72 61 63 74 65 72 |s '(75 c|haracter|
|000053f0| 73 29 27 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |s)'.cat |<< \SHAR|
|00005400| 5f 45 4f 46 20 3e 20 72 | 69 6e 67 2e 69 66 73 0a |_EOF > r|ing.ifs.|
|00005410| 30 2e 38 09 30 2e 36 09 | 2d 30 2e 36 09 30 2e 38 |0.8.0.6.|-0.6.0.8|
|00005420| 09 30 2e 30 09 30 2e 30 | 09 30 2e 39 39 0a 30 2e |.0.0.0.0|.0.99.0.|
|00005430| 30 09 30 2e 30 09 30 2e | 30 09 30 2e 30 09 31 2e |0.0.0.0.|0.0.0.1.|
|00005440| 30 09 30 2e 30 09 30 2e | 30 31 0a 30 2e 35 09 30 |0.0.0.0.|01.0.5.0|
|00005450| 2e 35 09 30 2e 35 09 30 | 2e 35 0a 53 48 41 52 5f |.5.0.5.0|.5.SHAR_|
|00005460| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 37 35 20 2d |EOF.if t|est 75 -|
|00005470| 6e 65 20 22 60 77 63 20 | 2d 63 20 72 69 6e 67 2e |ne "`wc |-c ring.|
|00005480| 69 66 73 60 22 0a 74 68 | 65 6e 0a 65 63 68 6f 20 |ifs`".th|en.echo |
|00005490| 73 68 61 72 3a 20 65 72 | 72 6f 72 20 74 72 61 6e |shar: er|ror tran|
|000054a0| 73 6d 69 74 74 69 6e 67 | 20 72 69 6e 67 2e 69 66 |smitting| ring.if|
|000054b0| 73 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |s '(shou|ld have |
|000054c0| 62 65 65 6e 20 37 35 20 | 63 68 61 72 61 63 74 65 |been 75 |characte|
|000054d0| 72 73 29 27 0a 66 69 0a | 65 63 68 6f 20 73 68 61 |rs)'.fi.|echo sha|
|000054e0| 72 3a 20 65 78 74 72 61 | 63 74 69 6e 67 20 73 69 |r: extra|cting si|
|000054f0| 65 72 70 69 6e 73 6b 69 | 2e 69 66 73 20 27 28 31 |erpinski|.ifs '(1|
|00005500| 32 35 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |25 chara|cters)'.|
|00005510| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00005520| 20 3e 20 73 69 65 72 70 | 69 6e 73 6b 69 2e 69 66 | > sierp|inski.if|
|00005530| 73 0a 30 2e 35 30 09 30 | 2e 30 30 09 30 2e 30 30 |s.0.50.0|.00.0.00|
|00005540| 09 30 2e 35 30 09 30 2e | 30 30 09 30 2e 30 30 09 |.0.50.0.|00.0.00.|
|00005550| 30 2e 33 33 0a 30 2e 35 | 30 09 30 2e 30 30 09 30 |0.33.0.5|0.0.00.0|
|00005560| 2e 30 30 09 30 2e 35 30 | 09 31 2e 30 30 09 30 2e |.00.0.50|.1.00.0.|
|00005570| 30 30 09 30 2e 33 33 0a | 30 2e 35 30 09 30 2e 30 |00.0.33.|0.50.0.0|
|00005580| 30 09 30 2e 30 30 09 30 | 2e 35 30 09 30 2e 35 30 |0.0.00.0|.50.0.50|
|00005590| 09 30 2e 35 30 09 30 2e | 33 34 0a 30 2e 35 30 09 |.0.50.0.|34.0.50.|
|000055a0| 31 2e 30 30 09 30 2e 30 | 30 09 30 2e 30 30 0a 53 |1.00.0.0|0.0.00.S|
|000055b0| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|000055c0| 31 32 35 20 2d 6e 65 20 | 22 60 77 63 20 2d 63 20 |125 -ne |"`wc -c |
|000055d0| 73 69 65 72 70 69 6e 73 | 6b 69 2e 69 66 73 60 22 |sierpins|ki.ifs`"|
|000055e0| 0a 74 68 65 6e 0a 65 63 | 68 6f 20 73 68 61 72 3a |.then.ec|ho shar:|
|000055f0| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|00005600| 69 6e 67 20 73 69 65 72 | 70 69 6e 73 6b 69 2e 69 |ing sier|pinski.i|
|00005610| 66 73 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |fs '(sho|uld have|
|00005620| 20 62 65 65 6e 20 31 32 | 35 20 63 68 61 72 61 63 | been 12|5 charac|
|00005630| 74 65 72 73 29 27 0a 66 | 69 0a 65 63 68 6f 20 73 |ters)'.f|i.echo s|
|00005640| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00005650| 73 71 75 61 72 65 2e 69 | 66 73 20 27 28 31 36 30 |square.i|fs '(160|
|00005660| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 63 61 | charact|ers)'.ca|
|00005670| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00005680| 20 73 71 75 61 72 65 2e | 69 66 73 0a 30 2e 35 30 | square.|ifs.0.50|
|00005690| 09 30 2e 30 30 09 30 2e | 30 30 09 30 2e 35 30 09 |.0.00.0.|00.0.50.|
|000056a0| 30 2e 30 30 09 30 2e 30 | 30 09 30 2e 32 35 0a 30 |0.00.0.0|0.0.25.0|
|000056b0| 2e 35 30 09 30 2e 30 30 | 09 30 2e 30 30 09 30 2e |.50.0.00|.0.00.0.|
|000056c0| 35 30 09 30 2e 35 30 09 | 30 2e 30 30 09 30 2e 32 |50.0.50.|0.00.0.2|
|000056d0| 35 0a 30 2e 35 30 09 30 | 2e 30 30 09 30 2e 30 30 |5.0.50.0|.00.0.00|
|000056e0| 09 30 2e 35 30 09 30 2e | 30 30 09 30 2e 35 30 09 |.0.50.0.|00.0.50.|
|000056f0| 30 2e 32 35 0a 30 2e 35 | 30 09 30 2e 30 30 09 30 |0.25.0.5|0.0.00.0|
|00005700| 2e 30 30 09 30 2e 35 30 | 09 30 2e 35 30 09 30 2e |.00.0.50|.0.50.0.|
|00005710| 35 30 09 30 2e 32 35 0a | 31 2e 30 30 09 31 2e 30 |50.0.25.|1.00.1.0|
|00005720| 30 09 30 2e 30 30 09 30 | 2e 30 30 0a 53 48 41 52 |0.0.00.0|.00.SHAR|
|00005730| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 31 36 30 |_EOF.if |test 160|
|00005740| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 73 71 75 | -ne "`w|c -c squ|
|00005750| 61 72 65 2e 69 66 73 60 | 22 0a 74 68 65 6e 0a 65 |are.ifs`|".then.e|
|00005760| 63 68 6f 20 73 68 61 72 | 3a 20 65 72 72 6f 72 20 |cho shar|: error |
|00005770| 74 72 61 6e 73 6d 69 74 | 74 69 6e 67 20 73 71 75 |transmit|ting squ|
|00005780| 61 72 65 2e 69 66 73 20 | 27 28 73 68 6f 75 6c 64 |are.ifs |'(should|
|00005790| 20 68 61 76 65 20 62 65 | 65 6e 20 31 36 30 20 63 | have be|en 160 c|
|000057a0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 65 |haracter|s)'.fi.e|
|000057b0| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|000057c0| 74 69 6e 67 20 73 74 61 | 72 2e 69 66 73 20 27 28 |ting sta|r.ifs '(|
|000057d0| 31 34 33 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |143 char|acters)'|
|000057e0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000057f0| 46 20 3e 20 73 74 61 72 | 2e 69 66 73 0a 30 2e 33 |F > star|.ifs.0.3|
|00005800| 30 39 30 31 36 39 20 2d | 30 2e 39 35 31 30 35 36 |090169 -|0.951056|
|00005810| 35 20 30 2e 39 35 31 30 | 35 36 35 20 30 2e 33 30 |5 0.9510|565 0.30|
|00005820| 39 30 31 36 39 20 30 2e | 30 09 30 2e 30 09 30 2e |90169 0.|0.0.0.0.|
|00005830| 38 35 0a 2d 30 2e 39 39 | 39 09 30 2e 30 09 30 2e |85.-0.99|9.0.0.0.|
|00005840| 30 09 30 2e 30 09 30 2e | 30 09 30 2e 33 32 34 39 |0.0.0.0.|0.0.3249|
|00005850| 31 39 36 09 30 2e 31 30 | 0a 30 2e 30 09 30 2e 30 |196.0.10|.0.0.0.0|
|00005860| 09 30 2e 30 09 30 2e 30 | 09 31 2e 30 09 30 2e 33 |.0.0.0.0|.1.0.0.3|
|00005870| 32 34 39 31 39 36 09 30 | 2e 30 35 0a 30 2e 35 09 |249196.0|.05.0.5.|
|00005880| 30 2e 35 09 30 2e 35 09 | 30 2e 35 0a 53 48 41 52 |0.5.0.5.|0.5.SHAR|
|00005890| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 31 34 33 |_EOF.if |test 143|
|000058a0| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 73 74 61 | -ne "`w|c -c sta|
|000058b0| 72 2e 69 66 73 60 22 0a | 74 68 65 6e 0a 65 63 68 |r.ifs`".|then.ech|
|000058c0| 6f 20 73 68 61 72 3a 20 | 65 72 72 6f 72 20 74 72 |o shar: |error tr|
|000058d0| 61 6e 73 6d 69 74 74 69 | 6e 67 20 73 74 61 72 2e |ansmitti|ng star.|
|000058e0| 69 66 73 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |ifs '(sh|ould hav|
|000058f0| 65 20 62 65 65 6e 20 31 | 34 33 20 63 68 61 72 61 |e been 1|43 chara|
|00005900| 63 74 65 72 73 29 27 0a | 66 69 0a 65 63 68 6f 20 |cters)'.|fi.echo |
|00005910| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00005920| 20 74 72 65 65 2e 69 66 | 73 20 27 28 31 36 32 20 | tree.if|s '(162 |
|00005930| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 63 61 74 |characte|rs)'.cat|
|00005940| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00005950| 74 72 65 65 2e 69 66 73 | 0a 30 2e 30 30 09 30 2e |tree.ifs|.0.00.0.|
|00005960| 30 30 09 30 2e 30 30 09 | 30 2e 35 30 09 30 2e 30 |00.0.00.|0.50.0.0|
|00005970| 30 09 30 2e 30 30 09 30 | 2e 30 35 0a 30 2e 31 30 |0.0.00.0|.05.0.10|
|00005980| 09 30 2e 30 30 09 30 2e | 30 30 09 30 2e 31 30 09 |.0.00.0.|00.0.10.|
|00005990| 30 2e 30 30 09 30 2e 32 | 30 09 30 2e 31 35 0a 30 |0.00.0.2|0.0.15.0|
|000059a0| 2e 34 32 09 2d 30 2e 34 | 32 09 30 2e 34 32 09 30 |.42.-0.4|2.0.42.0|
|000059b0| 2e 34 32 09 30 2e 30 30 | 09 30 2e 32 30 09 30 2e |.42.0.00|.0.20.0.|
|000059c0| 34 30 0a 30 2e 34 32 09 | 30 2e 34 32 09 2d 30 2e |40.0.42.|0.42.-0.|
|000059d0| 34 32 09 30 2e 34 32 09 | 30 2e 30 30 09 30 2e 32 |42.0.42.|0.00.0.2|
|000059e0| 30 09 30 2e 34 30 0a 32 | 2e 30 30 09 32 2e 30 30 |0.0.40.2|.00.2.00|
|000059f0| 09 30 2e 35 30 09 30 2e | 30 30 0a 53 48 41 52 5f |.0.50.0.|00.SHAR_|
|00005a00| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 31 36 32 20 |EOF.if t|est 162 |
|00005a10| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 74 72 65 65 |-ne "`wc| -c tree|
|00005a20| 2e 69 66 73 60 22 0a 74 | 68 65 6e 0a 65 63 68 6f |.ifs`".t|hen.echo|
|00005a30| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00005a40| 6e 73 6d 69 74 74 69 6e | 67 20 74 72 65 65 2e 69 |nsmittin|g tree.i|
|00005a50| 66 73 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |fs '(sho|uld have|
|00005a60| 20 62 65 65 6e 20 31 36 | 32 20 63 68 61 72 61 63 | been 16|2 charac|
|00005a70| 74 65 72 73 29 27 0a 66 | 69 0a 65 63 68 6f 20 73 |ters)'.f|i.echo s|
|00005a80| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00005a90| 74 72 69 61 6e 67 6c 65 | 2e 69 66 73 20 27 28 31 |triangle|.ifs '(1|
|00005aa0| 30 33 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |03 chara|cters)'.|
|00005ab0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00005ac0| 20 3e 20 74 72 69 61 6e | 67 6c 65 2e 69 66 73 0a | > trian|gle.ifs.|
|00005ad0| 2d 31 2e 30 09 30 2e 30 | 09 30 2e 30 09 30 2e 30 |-1.0.0.0|.0.0.0.0|
|00005ae0| 09 31 2e 30 09 30 2e 30 | 09 30 2e 33 34 0a 30 2e |.1.0.0.0|.0.34.0.|
|00005af0| 35 09 30 2e 30 09 30 2e | 38 36 36 09 30 2e 30 09 |5.0.0.0.|866.0.0.|
|00005b00| 30 2e 30 09 30 2e 30 09 | 30 2e 33 33 0a 30 2e 35 |0.0.0.0.|0.33.0.5|
|00005b10| 09 30 2e 30 09 2d 30 2e | 38 36 36 09 30 2e 30 09 |.0.0.-0.|866.0.0.|
|00005b20| 30 2e 35 09 30 2e 38 36 | 36 09 30 2e 33 33 0a 31 |0.5.0.86|6.0.33.1|
|00005b30| 09 31 09 30 09 30 0a 53 | 48 41 52 5f 45 4f 46 0a |.1.0.0.S|HAR_EOF.|
|00005b40| 69 66 20 74 65 73 74 20 | 31 30 33 20 2d 6e 65 20 |if test |103 -ne |
|00005b50| 22 60 77 63 20 2d 63 20 | 74 72 69 61 6e 67 6c 65 |"`wc -c |triangle|
|00005b60| 2e 69 66 73 60 22 0a 74 | 68 65 6e 0a 65 63 68 6f |.ifs`".t|hen.echo|
|00005b70| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00005b80| 6e 73 6d 69 74 74 69 6e | 67 20 74 72 69 61 6e 67 |nsmittin|g triang|
|00005b90| 6c 65 2e 69 66 73 20 27 | 28 73 68 6f 75 6c 64 20 |le.ifs '|(should |
|00005ba0| 68 61 76 65 20 62 65 65 | 6e 20 31 30 33 20 63 68 |have bee|n 103 ch|
|00005bb0| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 23 09 |aracters|)'.fi.#.|
|00005bc0| 45 6e 64 20 6f 66 20 73 | 68 65 6c 6c 20 61 72 63 |End of s|hell arc|
|00005bd0| 68 69 76 65 0a 65 78 69 | 74 20 30 0a 0a 41 6c 6c |hive.exi|t 0..All|
|00005be0| 65 6e 20 42 72 61 75 6e | 73 64 6f 72 66 09 09 09 |en Braun|sdorf...|
|00005bf0| 57 4f 52 4b 09 6b 2e 63 | 63 2e 70 75 72 64 75 65 |WORK.k.c|c.purdue|
|00005c00| 2e 65 64 75 21 61 68 67 | 0a 47 65 6e 65 72 61 6c |.edu!ahg|.General|
|00005c10| 20 43 6f 6e 73 75 6c 74 | 61 6e 74 09 09 09 53 43 | Consult|ant...SC|
|00005c20| 48 4f 4f 4c 09 65 69 2e | 65 63 6e 2e 70 75 72 64 |HOOL.ei.|ecn.purd|
|00005c30| 75 65 2e 65 64 75 21 62 | 72 61 75 6e 73 64 6f 0a |ue.edu!b|raunsdo.|
|00005c40| 50 75 72 64 75 65 20 55 | 6e 69 76 65 72 73 69 74 |Purdue U|niversit|
|00005c50| 79 20 43 6f 6d 70 75 74 | 69 6e 67 20 43 65 6e 74 |y Comput|ing Cent|
|00005c60| 65 72 09 48 4f 4d 45 09 | 65 65 2e 65 63 6e 2e 70 |er.HOME.|ee.ecn.p|
|00005c70| 75 72 64 75 65 2e 65 64 | 75 21 67 61 77 6b 21 61 |urdue.ed|u!gawk!a|
|00005c80| 6b 62 0a 0a 0a | |kb... | |
+--------+-------------------------+-------------------------+--------+--------+