home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume9 / xchg < prev    next >
SHell self-extracting ARchive  |  1990-01-04  |  16.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 73 75 |.sources|.misc.su|
|00000020| 62 6a 65 63 74 3a 20 76 | 30 39 69 30 39 39 3a 20 |bject: v|09i099: |
|00000030| 61 72 65 61 20 63 6f 64 | 65 20 63 6f 72 72 65 63 |area cod|e correc|
|00000040| 74 6f 72 0a 46 72 6f 6d | 3a 20 6a 6f 68 6e 40 63 |tor.From|: john@c|
|00000050| 68 69 6e 65 74 2e 63 68 | 69 2e 69 6c 2e 75 73 20 |hinet.ch|i.il.us |
|00000060| 28 4a 6f 68 6e 20 4d 75 | 6e 64 74 29 0a 53 65 6e |(John Mu|ndt).Sen|
|00000070| 64 65 72 3a 20 61 6c 6c | 62 65 72 79 40 75 75 6e |der: all|bery@uun|
|00000080| 65 74 2e 55 55 2e 4e 45 | 54 20 28 42 72 61 6e 64 |et.UU.NE|T (Brand|
|00000090| 6f 6e 20 53 2e 20 41 6c | 6c 62 65 72 79 20 2d 20 |on S. Al|lbery - |
|000000a0| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 6d 69 73 |comp.sou|rces.mis|
|000000b0| 63 29 0a 0a 50 6f 73 74 | 69 6e 67 2d 6e 75 6d 62 |c)..Post|ing-numb|
|000000c0| 65 72 3a 20 56 6f 6c 75 | 6d 65 20 39 2c 20 49 73 |er: Volu|me 9, Is|
|000000d0| 73 75 65 20 39 39 0a 53 | 75 62 6d 69 74 74 65 64 |sue 99.S|ubmitted|
|000000e0| 2d 62 79 3a 20 6a 6f 68 | 6e 40 63 68 69 6e 65 74 |-by: joh|n@chinet|
|000000f0| 2e 63 68 69 2e 69 6c 2e | 75 73 20 28 4a 6f 68 6e |.chi.il.|us (John|
|00000100| 20 4d 75 6e 64 74 29 0a | 41 72 63 68 69 76 65 2d | Mundt).|Archive-|
|00000110| 6e 61 6d 65 3a 20 78 63 | 68 67 0a 0a 54 68 69 73 |name: xc|hg..This|
|00000120| 20 6c 69 74 74 6c 65 20 | 75 74 69 6c 69 74 79 20 | little |utility |
|00000130| 77 69 6c 6c 20 61 64 6a | 75 73 74 20 70 68 6f 6e |will adj|ust phon|
|00000140| 65 20 6e 75 6d 62 65 72 | 73 20 69 6e 20 61 6e 20 |e number|s in an |
|00000150| 61 72 65 61 20 63 6f 64 | 65 20 74 68 61 74 20 77 |area cod|e that w|
|00000160| 61 73 0a 73 70 6c 69 74 | 20 69 6e 20 74 77 6f 2e |as.split| in two.|
|00000170| 20 20 53 69 6e 63 65 20 | 74 68 65 20 6d 6f 73 74 | Since |the most|
|00000180| 20 72 65 63 65 6e 74 20 | 69 73 20 43 68 69 63 61 | recent |is Chica|
|00000190| 67 6f 2c 20 74 68 65 20 | 65 78 63 68 61 6e 67 65 |go, the |exchange|
|000001a0| 20 6e 75 6d 62 65 72 73 | 0a 61 72 65 20 69 6e 63 | numbers|.are inc|
|000001b0| 6c 75 64 65 64 20 77 69 | 74 68 20 74 68 65 20 2d |luded wi|th the -|
|000001c0| 44 43 48 49 43 41 47 4f | 20 6f 70 74 69 6f 6e 2e |DCHICAGO| option.|
|000001d0| 20 4f 74 68 65 72 77 69 | 73 65 2c 20 69 74 20 63 | Otherwi|se, it c|
|000001e0| 61 6e 20 62 65 20 75 73 | 65 64 20 66 6f 72 0a 6f |an be us|ed for.o|
|000001f0| 74 68 65 72 20 61 72 65 | 61 20 63 6f 64 65 73 20 |ther are|a codes |
|00000200| 69 66 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 74 |if the d|ifferent|
|00000210| 20 65 78 63 68 61 6e 67 | 65 20 6e 75 6d 62 65 72 | exchang|e number|
|00000220| 73 20 61 72 65 20 70 6c | 61 63 65 64 20 69 6e 20 |s are pl|aced in |
|00000230| 74 77 6f 0a 64 61 74 61 | 20 66 69 6c 65 73 20 61 |two.data| files a|
|00000240| 73 20 65 78 70 6c 61 69 | 6e 65 64 20 69 6e 20 52 |s explai|ned in R|
|00000250| 45 41 44 4d 45 2e 20 20 | 0a 0a 43 6f 6d 70 69 6c |EADME. |..Compil|
|00000260| 65 20 75 73 69 6e 67 20 | 63 63 20 2d 4f 20 2d 73 |e using |cc -O -s|
|00000270| 20 2d 6f 20 78 63 68 67 | 20 2d 44 43 48 49 43 41 | -o xchg| -DCHICA|
|00000280| 47 4f 20 78 63 68 67 2e | 63 20 2f 6c 69 62 2f 6c |GO xchg.|c /lib/l|
|00000290| 69 62 50 57 2e 61 0a 0a | 4e 6f 72 6d 61 6c 20 75 |ibPW.a..|Normal u|
|000002a0| 73 61 67 65 20 77 6f 75 | 6c 64 20 62 65 20 0a 09 |sage wou|ld be ..|
|000002b0| 0a 09 78 63 68 67 20 2d | 6e 20 6f 6c 64 5f 70 68 |..xchg -|n old_ph|
|000002c0| 6f 6e 65 5f 66 69 6c 65 | 20 6e 65 77 5f 70 68 6f |one_file| new_pho|
|000002d0| 6e 65 5f 66 69 6c 65 0a | 0a 59 6f 75 20 75 73 65 |ne_file.|.You use|
|000002e0| 20 2d 6e 20 69 66 20 79 | 6f 75 20 61 72 65 20 69 | -n if y|ou are i|
|000002f0| 6e 20 74 68 65 20 6e 65 | 77 20 61 72 65 61 20 63 |n the ne|w area c|
|00000300| 6f 64 65 20 28 37 30 38 | 29 20 6f 72 20 2d 6f 20 |ode (708|) or -o |
|00000310| 69 66 20 79 6f 75 20 61 | 72 65 0a 69 6e 20 74 68 |if you a|re.in th|
|00000320| 65 20 6f 6c 64 20 61 72 | 65 61 20 63 6f 64 65 20 |e old ar|ea code |
|00000330| 28 33 31 32 29 2e 20 20 | 49 74 20 77 6f 72 6b 73 |(312). |It works|
|00000340| 20 6f 6e 20 61 73 63 69 | 69 20 66 69 6c 65 73 20 | on asci|i files |
|00000350| 61 6e 64 20 70 72 6f 62 | 61 62 6c 79 0a 6f 6e 20 |and prob|ably.on |
|00000360| 73 6f 6d 65 20 77 6f 72 | 64 20 70 72 6f 63 65 73 |some wor|d proces|
|00000370| 73 65 72 20 66 69 6c 65 | 73 20 61 73 20 77 65 6c |ser file|s as wel|
|00000380| 6c 2e 0a 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |l...----|--------|
|00000390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 4a 6f 68 6e 20 4d |--------|-.John M|
|000003a0| 75 6e 64 74 20 20 20 54 | 65 61 63 68 65 72 73 27 |undt T|eachers'|
|000003b0| 20 41 69 64 65 2c 20 49 | 6e 63 2e 20 20 50 2e 4f | Aide, I|nc. P.O|
|000003c0| 2e 20 42 6f 78 20 31 36 | 36 36 20 20 48 69 67 68 |. Box 16|66 High|
|000003d0| 6c 61 6e 64 20 50 61 72 | 6b 2c 20 49 4c 0a 6a 6f |land Par|k, IL.jo|
|000003e0| 68 6e 40 61 64 6d 63 74 | 72 2e 63 68 69 2e 69 6c |hn@admct|r.chi.il|
|000003f0| 2e 75 73 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.us.----|--------|
|00000400| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000410| 2d 2d 63 75 74 20 68 65 | 72 65 2d 2d 2d 2d 2d 2d |--cut he|re------|
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 23 21 20 |--------|----.#! |
|00000440| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|00000450| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|00000460| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|00000470| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|00000480| 6c 69 6e 65 2c 20 74 68 | 65 6e 20 75 6e 70 61 63 |line, th|en unpac|
|00000490| 6b 0a 23 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |k.# it b|y saving|
|000004a0| 20 69 74 20 69 6e 74 6f | 20 61 20 66 69 6c 65 20 | it into| a file |
|000004b0| 61 6e 64 20 74 79 70 69 | 6e 67 20 22 73 68 20 66 |and typi|ng "sh f|
|000004c0| 69 6c 65 22 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ile". T|o overwr|
|000004d0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 0a 23 20 66 |ite exis|ting.# f|
|000004e0| 69 6c 65 73 2c 20 74 79 | 70 65 20 22 73 68 20 66 |iles, ty|pe "sh f|
|000004f0| 69 6c 65 20 2d 63 22 2e | 20 20 59 6f 75 20 63 61 |ile -c".| You ca|
|00000500| 6e 20 61 6c 73 6f 20 66 | 65 65 64 20 74 68 69 73 |n also f|eed this|
|00000510| 20 61 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | as stan|dard inp|
|00000520| 75 74 20 76 69 61 0a 23 | 20 75 6e 73 68 61 72 2c |ut via.#| unshar,|
|00000530| 20 6f 72 20 62 79 20 74 | 79 70 69 6e 67 20 22 73 | or by t|yping "s|
|00000540| 68 20 3c 66 69 6c 65 22 | 2c 20 65 2e 67 2e 2e 20 |h <file"|, e.g.. |
|00000550| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|00000560| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|00000570| 75 0a 23 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |u.# will| see the|
|00000580| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00000590| 67 65 20 61 74 20 74 68 | 65 20 65 6e 64 3a 0a 23 |ge at th|e end:.#|
|000005a0| 09 09 22 45 6e 64 20 6f | 66 20 73 68 65 6c 6c 20 |.."End o|f shell |
|000005b0| 61 72 63 68 69 76 65 2e | 22 0a 23 20 43 6f 6e 74 |archive.|".# Cont|
|000005c0| 65 6e 74 73 3a 20 20 52 | 45 41 44 4d 45 20 78 63 |ents: R|EADME xc|
|000005d0| 68 67 2e 63 0a 23 20 57 | 72 61 70 70 65 64 20 62 |hg.c.# W|rapped b|
|000005e0| 79 20 6a 6f 68 6e 40 63 | 68 69 6e 65 74 20 6f 6e |y john@c|hinet on|
|000005f0| 20 57 65 64 20 44 65 63 | 20 32 30 20 31 34 3a 33 | Wed Dec| 20 14:3|
|00000600| 38 3a 32 37 20 31 39 38 | 39 0a 50 41 54 48 3d 2f |8:27 198|9.PATH=/|
|00000610| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000620| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|00000630| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000640| 52 45 41 44 4d 45 27 20 | 2d 61 20 22 24 7b 31 7d |README' |-a "${1}|
|00000650| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000660| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000670| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000680| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000690| 27 52 45 41 44 4d 45 27 | 5c 22 0a 65 6c 73 65 0a |'README'|\".else.|
|000006a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000006b0| 63 74 69 6e 67 20 5c 22 | 27 52 45 41 44 4d 45 27 |cting \"|'README'|
|000006c0| 5c 22 20 5c 28 31 39 31 | 35 20 63 68 61 72 61 63 |\" \(191|5 charac|
|000006d0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000006e0| 2f 2f 22 20 3e 27 52 45 | 41 44 4d 45 27 20 3c 3c |//" >'RE|ADME' <<|
|000006f0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 78 |'END_OF_|FILE'.Xx|
|00000700| 63 68 67 20 2d 20 66 69 | 78 20 61 72 65 61 20 63 |chg - fi|x area c|
|00000710| 6f 64 65 73 20 77 68 65 | 6e 20 6f 6e 65 20 69 73 |odes whe|n one is|
|00000720| 20 73 70 6c 69 74 20 69 | 6e 20 74 77 6f 0a 58 0a | split i|n two.X.|
|00000730| 58 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 63 61 |XThis pr|ogram ca|
|00000740| 6d 65 20 69 6e 74 6f 20 | 62 65 69 6e 67 20 77 68 |me into |being wh|
|00000750| 65 6e 20 61 72 65 61 20 | 63 6f 64 65 20 33 31 32 |en area |code 312|
|00000760| 20 77 61 73 20 73 70 6c | 69 74 20 69 6e 74 6f 20 | was spl|it into |
|00000770| 74 77 6f 0a 58 77 69 74 | 68 20 37 30 38 20 62 65 |two.Xwit|h 708 be|
|00000780| 69 6e 67 20 74 68 65 20 | 6e 65 77 20 6f 6e 65 2e |ing the |new one.|
|00000790| 20 20 4c 6f 74 73 20 6f | 66 20 70 68 6f 6e 65 20 | Lots o|f phone |
|000007a0| 6e 75 6d 62 65 72 73 20 | 68 61 64 20 74 6f 20 68 |numbers |had to h|
|000007b0| 61 76 65 20 74 68 65 0a | 58 63 6f 72 72 65 63 74 |ave the.|Xcorrect|
|000007c0| 20 61 72 65 61 20 63 6f | 64 65 73 20 61 64 64 65 | area co|des adde|
|000007d0| 64 2c 20 61 6e 64 20 74 | 68 69 73 20 64 6f 65 73 |d, and t|his does|
|000007e0| 20 74 68 61 74 2e 20 20 | 49 74 20 75 73 65 73 20 | that. |It uses |
|000007f0| 74 77 6f 20 6c 69 73 74 | 73 20 6f 66 0a 58 6e 75 |two list|s of.Xnu|
|00000800| 6d 62 65 72 73 20 77 68 | 69 63 68 20 61 72 65 20 |mbers wh|ich are |
|00000810| 76 61 6c 69 64 20 66 6f | 72 20 74 68 65 20 6e 65 |valid fo|r the ne|
|00000820| 77 20 61 6e 64 20 6f 6c | 64 20 65 78 63 68 61 67 |w and ol|d exchag|
|00000830| 65 73 2c 20 6e 61 6d 65 | 6c 79 20 6e 65 77 2e 64 |es, name|ly new.d|
|00000840| 61 74 0a 58 61 6e 64 20 | 6f 6c 64 2e 64 61 74 20 |at.Xand |old.dat |
|00000850| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 20 28 |respecti|vely. (|
|00000860| 49 66 20 63 6f 6d 70 69 | 6c 65 64 20 77 69 74 68 |If compi|led with|
|00000870| 20 2d 44 43 48 49 43 41 | 47 4f 2c 20 74 68 65 20 | -DCHICA|GO, the |
|00000880| 74 77 6f 20 74 61 62 6c | 65 73 0a 58 77 69 6c 6c |two tabl|es.Xwill|
|00000890| 20 62 65 20 63 6f 6d 70 | 69 6c 65 64 20 72 69 67 | be comp|iled rig|
|000008a0| 68 74 20 69 6e 74 6f 20 | 74 68 65 20 70 72 6f 67 |ht into |the prog|
|000008b0| 72 61 6d 20 61 6e 64 20 | 74 68 65 20 64 61 74 61 |ram and |the data|
|000008c0| 20 66 69 6c 65 73 20 61 | 72 65 20 6e 6f 74 0a 58 | files a|re not.X|
|000008d0| 6e 65 65 64 65 64 2e 29 | 0a 58 0a 58 54 68 65 20 |needed.)|.X.XThe |
|000008e0| 70 72 6f 70 65 72 20 61 | 72 65 61 20 63 6f 64 65 |proper a|rea code|
|000008f0| 20 69 73 20 61 64 64 65 | 64 20 74 6f 20 61 6c 6c | is adde|d to all|
|00000900| 20 6e 75 6d 62 65 72 73 | 20 74 68 61 74 20 77 65 | numbers| that we|
|00000910| 72 65 20 69 6e 20 79 6f | 75 72 20 6c 6f 63 61 6c |re in yo|ur local|
|00000920| 0a 58 61 72 65 61 20 62 | 75 74 20 6e 6f 20 6c 6f |.Xarea b|ut no lo|
|00000930| 6e 67 65 72 20 61 72 65 | 2e 20 20 41 6c 74 65 72 |nger are|. Alter|
|00000940| 6e 61 74 69 76 65 6c 79 | 2c 20 79 6f 75 20 63 61 |natively|, you ca|
|00000950| 6e 20 61 64 64 20 74 68 | 65 20 70 72 6f 70 65 72 |n add th|e proper|
|00000960| 20 61 72 65 61 0a 58 63 | 6f 64 65 20 74 6f 20 61 | area.Xc|ode to a|
|00000970| 6c 6c 20 6e 75 6d 62 65 | 72 73 2c 20 72 65 67 61 |ll numbe|rs, rega|
|00000980| 72 64 6c 65 73 73 20 6f | 66 20 77 68 65 72 65 20 |rdless o|f where |
|00000990| 74 68 65 79 20 66 61 6c | 6c 20 6e 6f 77 2e 0a 58 |they fal|l now..X|
|000009a0| 0a 58 49 74 20 72 65 63 | 6f 67 6e 69 7a 65 73 20 |.XIt rec|ognizes |
|000009b0| 61 20 6e 75 6d 62 65 72 | 20 61 73 20 5b 5e 6e 5d |a number| as [^n]|
|000009c0| 6e 6e 6e 2d 6e 6e 6e 6e | 5b 5e 6e 5d 2c 20 5b 5e |nnn-nnnn|[^n], [^|
|000009d0| 6e 5d 6e 6e 6e 5b 20 29 | 2d 5d 6e 6e 6e 2d 6e 6e |n]nnn[ )|-]nnn-nn|
|000009e0| 6e 6e 5b 5e 6e 5d 0a 58 | 77 68 65 72 65 20 6e 20 |nn[^n].X|where n |
|000009f0| 69 73 20 61 20 64 69 67 | 69 74 2e 20 20 57 69 74 |is a dig|it. Wit|
|00000a00| 68 20 61 6e 20 61 72 65 | 61 20 63 6f 64 65 2c 20 |h an are|a code, |
|00000a10| 38 30 30 2d 35 35 35 2d | 31 32 31 32 2c 20 28 38 |800-555-|1212, (8|
|00000a20| 30 30 29 20 35 35 35 2d | 31 32 31 32 2c 0a 58 61 |00) 555-|1212,.Xa|
|00000a30| 6e 64 20 28 38 30 30 29 | 35 35 35 2d 31 32 31 32 |nd (800)|555-1212|
|00000a40| 20 61 72 65 20 61 6c 6c | 20 72 65 63 6f 67 6e 69 | are all| recogni|
|00000a50| 7a 65 64 2e 20 20 50 61 | 72 74 20 6e 75 6d 62 65 |zed. Pa|rt numbe|
|00000a60| 72 73 20 77 69 74 68 20 | 70 61 74 74 65 72 6e 73 |rs with |patterns|
|00000a70| 20 74 68 61 74 0a 58 6c | 6f 6f 6b 20 6c 69 6b 65 | that.Xl|ook like|
|00000a80| 20 74 68 65 20 61 62 6f | 76 65 20 63 6f 75 6c 64 | the abo|ve could|
|00000a90| 20 66 61 6b 65 20 69 74 | 20 6f 75 74 2e 20 20 0a | fake it| out. .|
|00000aa0| 58 0a 58 55 73 61 67 65 | 20 69 73 20 0a 58 0a 58 |X.XUsage| is .X.X|
|00000ab0| 78 63 68 67 20 5b 20 2d | 64 62 6e 6f 20 5d 20 5b |xchg [ -|dbno ] [|
|00000ac0| 20 2d 4f 20 6f 6c 64 2e | 64 61 74 20 5d 20 5b 20 | -O old.|dat ] [ |
|00000ad0| 2d 4e 20 6e 65 77 2e 64 | 61 74 20 5d 20 5b 69 6e |-N new.d|at ] [in|
|00000ae0| 66 69 6c 65 20 5b 6f 75 | 74 66 69 6c 65 5d 20 5d |file [ou|tfile] ]|
|00000af0| 0a 58 0a 58 53 74 64 69 | 6e 20 69 6e 70 75 74 20 |.X.XStdi|n input |
|00000b00| 69 73 20 72 65 61 64 20 | 61 6e 64 20 6f 75 74 70 |is read |and outp|
|00000b10| 75 74 20 69 73 20 74 6f | 20 73 74 64 6f 75 74 20 |ut is to| stdout |
|00000b20| 75 6e 6c 65 73 73 20 66 | 69 6c 65 20 6e 61 6d 65 |unless f|ile name|
|00000b30| 73 20 61 72 65 0a 58 73 | 70 65 63 69 66 69 65 64 |s are.Xs|pecified|
|00000b40| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | on the |command |
|00000b50| 6c 69 6e 65 2e 20 20 0a | 58 0a 58 09 2d 6e 20 6f |line. .|X.X.-n o|
|00000b60| 72 20 2d 6f 09 6f 6e 65 | 20 6d 75 73 74 20 62 65 |r -o.one| must be|
|00000b70| 20 73 70 65 63 69 66 69 | 65 64 20 74 6f 20 74 65 | specifi|ed to te|
|00000b80| 6c 6c 20 74 68 65 20 70 | 72 6f 67 72 61 6d 0a 58 |ll the p|rogram.X|
|00000b90| 09 09 09 69 66 20 79 6f | 75 20 61 72 65 20 6e 6f |...if yo|u are no|
|00000ba0| 77 20 69 6e 20 74 68 65 | 20 3c 6e 3e 65 77 20 65 |w in the| <n>ew e|
|00000bb0| 78 63 68 61 6e 67 65 20 | 6f 72 20 74 68 65 20 0a |xchange |or the .|
|00000bc0| 58 09 09 09 3c 6f 3e 6c | 64 20 6f 6e 65 2e 20 20 |X...<o>l|d one. |
|00000bd0| 0a 58 0a 58 09 2d 64 20 | 09 09 70 75 74 20 61 72 |.X.X.-d |..put ar|
|00000be0| 65 61 20 63 6f 64 65 73 | 20 69 6e 20 77 69 74 68 |ea codes| in with|
|00000bf0| 20 61 20 64 61 73 68 20 | 72 61 74 68 65 72 20 74 | a dash |rather t|
|00000c00| 68 61 6e 20 75 73 69 6e | 67 0a 58 09 09 09 70 61 |han usin|g.X...pa|
|00000c10| 72 65 6e 74 68 65 73 65 | 73 3a 20 38 30 30 2d 35 |renthese|s: 800-5|
|00000c20| 35 35 2d 31 32 31 32 2c | 20 6e 6f 74 20 28 38 30 |55-1212,| not (80|
|00000c30| 30 29 20 35 35 35 2d 31 | 32 31 32 20 0a 58 0a 58 |0) 555-1|212 .X.X|
|00000c40| 09 2d 62 20 09 09 70 75 | 74 20 69 6e 20 61 72 65 |.-b ..pu|t in are|
|00000c50| 61 20 63 6f 64 65 73 20 | 66 6f 72 20 62 6f 74 68 |a codes |for both|
|00000c60| 20 74 68 65 20 6e 65 77 | 20 61 6e 64 20 74 68 65 | the new| and the|
|00000c70| 20 6f 6c 64 0a 58 09 09 | 09 65 78 63 68 61 6e 67 | old.X..|.exchang|
|00000c80| 65 20 6e 75 6d 62 65 72 | 73 0a 58 0a 58 09 2d 4f |e number|s.X.X.-O|
|00000c90| 09 09 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |..the na|me of th|
|00000ca0| 65 20 64 61 74 61 20 6f | 6e 20 74 68 65 20 6f 6c |e data o|n the ol|
|00000cb0| 64 20 65 78 63 68 61 67 | 65 0a 58 09 09 09 6e 75 |d exchag|e.X...nu|
|00000cc0| 6d 62 65 72 73 2e 20 20 | 54 68 65 20 66 69 72 73 |mbers. |The firs|
|00000cd0| 74 20 6c 69 6e 65 20 6d | 75 73 74 20 68 61 76 65 |t line m|ust have|
|00000ce0| 20 74 68 65 20 6f 6c 64 | 0a 58 09 09 09 65 78 63 | the old|.X...exc|
|00000cf0| 68 61 6e 67 65 20 61 72 | 65 61 20 63 6f 64 65 20 |hange ar|ea code |
|00000d00| 6f 6e 20 69 74 2e 20 20 | 54 68 65 6e 2c 20 6f 6e |on it. |Then, on|
|00000d10| 65 20 70 65 72 20 6c 69 | 6e 65 0a 58 09 09 09 61 |e per li|ne.X...a|
|00000d20| 72 65 20 61 6c 6c 20 74 | 68 65 20 65 78 63 68 61 |re all t|he excha|
|00000d30| 6e 67 65 20 70 72 65 66 | 69 78 65 73 20 66 6f 72 |nge pref|ixes for|
|00000d40| 20 74 68 65 0a 58 09 09 | 09 65 78 63 68 61 6e 67 | the.X..|.exchang|
|00000d50| 65 2e 0a 58 0a 58 09 2d | 4e 09 09 74 68 65 20 6e |e..X.X.-|N..the n|
|00000d60| 61 6d 65 20 6f 66 20 74 | 68 65 20 64 61 74 61 20 |ame of t|he data |
|00000d70| 6f 6e 20 74 68 65 20 6e | 65 77 20 65 78 63 68 61 |on the n|ew excha|
|00000d80| 6e 67 65 0a 58 09 09 09 | 6e 75 6d 62 65 72 73 2e |nge.X...|numbers.|
|00000d90| 20 20 46 6f 72 6d 61 74 | 20 61 73 20 61 62 6f 76 | Format| as abov|
|00000da0| 65 2e 0a 58 0a 58 43 6f | 6d 70 69 6c 65 20 77 69 |e..X.XCo|mpile wi|
|00000db0| 74 68 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |th the f|ollowing|
|00000dc0| 20 6f 70 74 69 6f 6e 73 | 2e 20 20 53 69 6e 63 65 | options|. Since|
|00000dd0| 20 72 65 67 65 78 28 29 | 20 61 6e 64 20 72 65 67 | regex()| and reg|
|00000de0| 63 6d 70 28 29 20 61 72 | 65 0a 58 75 73 65 64 2c |cmp() ar|e.Xused,|
|00000df0| 20 74 68 65 20 6c 69 62 | 72 61 72 79 20 66 6f 72 | the lib|rary for|
|00000e00| 20 73 61 6d 65 20 6d 75 | 73 74 20 62 65 20 69 6e | same mu|st be in|
|00000e10| 63 75 64 65 64 2e 20 20 | 54 68 69 73 20 69 73 20 |cuded. |This is |
|00000e20| 61 73 20 73 68 6f 77 20 | 62 65 6c 6f 77 20 66 6f |as show |below fo|
|00000e30| 72 0a 58 41 54 26 54 27 | 73 20 53 79 73 56 33 2e |r.XAT&T'|s SysV3.|
|00000e40| 32 2e 20 20 49 74 20 69 | 73 20 70 72 6f 62 61 62 |2. It i|s probab|
|00000e50| 6c 79 20 73 6f 6d 65 77 | 68 65 72 65 20 65 6c 73 |ly somew|here els|
|00000e60| 65 20 6f 6e 20 64 69 66 | 66 65 72 65 6e 74 20 73 |e on dif|ferent s|
|00000e70| 79 73 74 65 6d 73 2e 0a | 58 0a 58 63 63 20 2d 4f |ystems..|X.Xcc -O|
|00000e80| 20 2d 73 20 2d 6f 20 78 | 63 68 67 20 2d 44 43 48 | -s -o x|chg -DCH|
|00000e90| 49 43 41 47 4f 20 78 63 | 68 67 2e 63 20 2f 6c 69 |ICAGO xc|hg.c /li|
|00000ea0| 62 2f 6c 69 62 50 57 2e | 61 0a 58 0a 45 4e 44 5f |b/libPW.|a.X.END_|
|00000eb0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00000ec0| 31 39 31 35 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1915 -ne| `wc -c |
|00000ed0| 3c 27 52 45 41 44 4d 45 | 27 60 3b 20 74 68 65 6e |<'README|'`; then|
|00000ee0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00000ef0| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 20 75 6e 70 |\"'READM|E'\" unp|
|00000f00| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00000f10| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00000f20| 6f 66 20 27 52 45 41 44 | 4d 45 27 0a 66 69 0a 69 |of 'READ|ME'.fi.i|
|00000f30| 66 20 74 65 73 74 20 2d | 66 20 27 78 63 68 67 2e |f test -|f 'xchg.|
|00000f40| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00000f50| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000f60| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000f70| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000f80| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 78 63 68 67 |ing file| \"'xchg|
|00000f90| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.c'\".el|se.echo |
|00000fa0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000fb0| 20 5c 22 27 78 63 68 67 | 2e 63 27 5c 22 20 5c 28 | \"'xchg|.c'\" \(|
|00000fc0| 31 32 34 31 38 20 63 68 | 61 72 61 63 74 65 72 73 |12418 ch|aracters|
|00000fd0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00000fe0| 3e 27 78 63 68 67 2e 63 | 27 20 3c 3c 27 45 4e 44 |>'xchg.c|' <<'END|
|00000ff0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 0a 58 2f 2a 0a |_OF_FILE|'.X.X/*.|
|00001000| 58 20 2a 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |X * This| program|
|00001010| 20 63 68 61 6e 67 65 73 | 20 70 68 6f 6e 65 20 6e | changes| phone n|
|00001020| 75 6d 62 65 72 73 20 66 | 72 6f 6d 20 61 6e 20 65 |umbers f|rom an e|
|00001030| 78 63 68 61 6e 67 65 20 | 74 68 61 74 20 68 61 73 |xchange |that has|
|00001040| 20 62 65 65 6e 0a 58 20 | 2a 20 73 70 6c 69 74 20 | been.X |* split |
|00001050| 69 6e 74 6f 20 74 77 6f | 20 6e 65 77 20 61 72 65 |into two| new are|
|00001060| 61 20 63 6f 64 65 73 2e | 20 20 49 74 20 61 64 64 |a codes.| It add|
|00001070| 73 20 61 20 28 6e 65 77 | 29 20 70 72 65 66 65 78 |s a (new|) prefex|
|00001080| 20 69 6e 20 66 72 6f 6e | 74 20 6f 66 0a 58 20 2a | in fron|t of.X *|
|00001090| 20 61 6c 6c 20 6e 75 6d | 62 65 72 73 20 74 68 61 | all num|bers tha|
|000010a0| 74 20 61 72 65 20 6f 75 | 74 73 69 64 65 20 6f 66 |t are ou|tside of|
|000010b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 72 65 | the cur|rent pre|
|000010c0| 66 69 78 2e 0a 58 20 2a | 0a 58 20 2a 20 49 74 20 |fix..X *|.X * It |
|000010d0| 61 73 73 75 6d 65 73 20 | 74 77 6f 20 66 69 6c 65 |assumes |two file|
|000010e0| 73 20 63 61 6c 6c 65 64 | 20 6f 6c 64 2e 64 61 74 |s called| old.dat|
|000010f0| 20 61 6e 64 20 6e 65 77 | 2e 64 61 74 20 77 68 69 | and new|.dat whi|
|00001100| 63 68 20 68 6f 6c 64 20 | 74 68 65 0a 58 20 2a 20 |ch hold |the.X * |
|00001110| 63 75 72 72 65 6e 74 20 | 70 72 65 66 69 78 65 73 |current |prefixes|
|00001120| 20 66 6f 72 20 74 68 65 | 20 6f 6c 64 20 61 6e 64 | for the| old and|
|00001130| 20 6e 65 77 20 61 72 65 | 61 20 63 6f 64 65 73 2c | new are|a codes,|
|00001140| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 0a 58 | respect|ively..X|
|00001150| 20 2a 20 6f 72 20 69 66 | 20 2d 44 43 48 49 43 41 | * or if| -DCHICA|
|00001160| 47 4f 2c 20 74 77 6f 20 | 61 72 72 61 79 73 20 69 |GO, two |arrays i|
|00001170| 6e 20 74 68 69 73 20 73 | 6f 75 72 63 65 20 66 69 |n this s|ource fi|
|00001180| 6c 65 20 61 72 65 20 75 | 73 65 64 20 66 6f 72 20 |le are u|sed for |
|00001190| 74 68 65 0a 58 20 2a 20 | 63 6f 6e 76 65 72 73 69 |the.X * |conversi|
|000011a0| 6f 6e 20 66 72 6f 6d 20 | 33 31 32 20 74 6f 20 37 |on from |312 to 7|
|000011b0| 30 38 20 61 72 65 61 20 | 63 6f 64 65 73 20 72 65 |08 area |codes re|
|000011c0| 73 70 65 63 74 69 76 65 | 6c 79 2e 0a 58 20 2a 0a |spective|ly..X *.|
|000011d0| 58 20 2a 20 28 63 29 20 | 31 39 38 39 20 62 79 0a |X * (c) |1989 by.|
|000011e0| 58 20 2a 20 4a 6f 68 6e | 20 50 2e 20 4d 75 6e 64 |X * John| P. Mund|
|000011f0| 74 0a 58 20 2a 20 32 37 | 33 37 20 50 6f 72 74 20 |t.X * 27|37 Port |
|00001200| 43 6c 69 6e 74 6f 6e 20 | 52 6f 61 64 0a 58 20 2a |Clinton |Road.X *|
|00001210| 20 48 69 67 68 6c 61 6e | 64 20 50 61 72 6b 2c 20 | Highlan|d Park, |
|00001220| 49 4c 20 36 30 30 33 35 | 0a 58 20 23 20 28 37 30 |IL 60035|.X # (70|
|00001230| 38 29 20 34 33 32 2d 39 | 30 37 33 20 20 20 3c 2d |8) 432-9|073 <-|
|00001240| 2d 20 6e 6f 77 20 79 6f | 75 20 6b 6e 6f 77 20 77 |- now yo|u know w|
|00001250| 68 79 20 49 20 77 72 6f | 74 65 20 74 68 69 73 20 |hy I wro|te this |
|00001260| 3a 2d 28 0a 58 20 2a 0a | 58 20 2a 20 6d 75 6e 64 |:-(.X *.|X * mund|
|00001270| 74 40 61 64 6d 63 74 72 | 2e 63 68 69 2e 69 6c 2e |t@admctr|.chi.il.|
|00001280| 75 73 20 7c 7c 20 6a 6f | 68 6e 40 63 68 69 6e 65 |us || jo|hn@chine|
|00001290| 74 2e 63 68 69 2e 69 6c | 2e 75 73 0a 58 20 2a 0a |t.chi.il|.us.X *.|
|000012a0| 58 20 2a 20 50 65 72 6d | 69 73 73 69 6f 6e 20 69 |X * Perm|ission i|
|000012b0| 73 20 67 69 76 65 6e 20 | 74 6f 20 75 73 65 20 74 |s given |to use t|
|000012c0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 6e 20 61 |his prog|ram in a|
|000012d0| 6e 79 20 6d 61 6e 6e 65 | 72 20 77 68 61 74 73 6f |ny manne|r whatso|
|000012e0| 65 76 65 72 20 61 73 0a | 58 20 2a 20 6c 6f 6e 67 |ever as.|X * long|
|000012f0| 20 61 73 20 69 74 20 69 | 73 20 6e 6f 74 20 75 73 | as it i|s not us|
|00001300| 65 64 20 66 6f 72 20 63 | 6f 6d 6d 65 72 63 69 61 |ed for c|ommercia|
|00001310| 6c 20 67 61 69 6e 2e 20 | 20 4e 61 74 75 72 61 6c |l gain. | Natural|
|00001320| 6c 79 2c 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f |ly, ther|e are no|
|00001330| 0a 58 20 2a 20 67 75 61 | 72 61 6e 74 65 65 73 20 |.X * gua|rantees |
|00001340| 74 6f 20 69 74 73 20 66 | 75 6e 63 74 69 6f 6e 61 |to its f|unctiona|
|00001350| 6c 69 74 79 2c 20 61 63 | 63 75 72 61 63 79 2c 20 |lity, ac|curacy, |
|00001360| 63 6f 72 72 65 63 74 6e | 65 73 73 2c 20 69 6e 73 |correctn|ess, ins|
|00001370| 69 67 68 74 66 75 6c 2d | 0a 58 20 2a 20 6e 65 73 |ightful-|.X * nes|
|00001380| 73 2c 20 65 74 63 2e 20 | 20 46 6c 61 6d 65 73 2c |s, etc. | Flames,|
|00001390| 20 63 6f 6d 70 6c 69 6d | 65 6e 74 73 2c 20 61 6e | complim|ents, an|
|000013a0| 64 20 63 6f 72 72 65 63 | 74 69 6f 6e 73 20 77 65 |d correc|tions we|
|000013b0| 6c 63 6f 6d 65 2e 0a 58 | 20 2a 0a 58 20 2a 2f 0a |lcome..X| *.X */.|
|000013c0| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |X#includ|e <stdio|
|000013d0| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 63 |.h>.X#in|clude <c|
|000013e0| 74 79 70 65 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |type.h>.|X#includ|
|000013f0| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 58 23 69 |e <strin|g.h>.X#i|
|00001400| 6e 63 6c 75 64 65 20 3c | 73 65 61 72 63 68 2e 68 |nclude <|search.h|
|00001410| 3e 0a 58 0a 58 23 69 66 | 6e 64 65 66 20 54 52 55 |>.X.X#if|ndef TRU|
|00001420| 45 0a 58 23 64 65 66 69 | 6e 65 20 54 52 55 45 09 |E.X#defi|ne TRUE.|
|00001430| 31 0a 58 23 64 65 66 69 | 6e 65 20 46 41 4c 53 45 |1.X#defi|ne FALSE|
|00001440| 09 30 0a 58 23 65 6e 64 | 69 66 0a 58 0a 58 23 64 |.0.X#end|if.X.X#d|
|00001450| 65 66 69 6e 65 20 43 4e | 55 4c 4c 09 09 28 63 68 |efine CN|ULL..(ch|
|00001460| 61 72 20 2a 29 20 30 0a | 58 23 64 65 66 69 6e 65 |ar *) 0.|X#define|
|00001470| 20 42 4f 4f 4c 45 41 4e | 09 09 69 6e 74 0a 58 23 | BOOLEAN|..int.X#|
|00001480| 64 65 66 69 6e 65 20 4f | 4c 44 4e 55 4d 53 09 09 |define O|LDNUMS..|
|00001490| 22 6f 6c 64 2e 64 61 74 | 22 0a 58 23 64 65 66 69 |"old.dat|".X#defi|
|000014a0| 6e 65 20 4e 45 57 4e 55 | 4d 53 09 09 22 6e 65 77 |ne NEWNU|MS.."new|
|000014b0| 2e 64 61 74 22 0a 58 0a | 58 74 79 70 65 64 65 66 |.dat".X.|Xtypedef|
|000014c0| 20 73 74 72 75 63 74 20 | 7b 0a 58 09 63 68 61 72 | struct |{.X.char|
|000014d0| 20 2a 61 5f 6e 61 6d 65 | 3b 09 09 2f 2a 20 74 68 | *a_name|;../* th|
|000014e0| 65 20 65 78 63 68 61 6e | 67 65 27 73 20 61 72 65 |e exchan|ge's are|
|000014f0| 61 20 63 6f 64 65 20 61 | 73 20 61 20 73 74 72 69 |a code a|s a stri|
|00001500| 6e 67 20 2a 2f 0a 58 09 | 63 68 61 72 20 2a 61 5f |ng */.X.|char *a_|
|00001510| 66 69 6c 65 3b 09 09 2f | 2a 20 74 68 65 20 66 69 |file;../|* the fi|
|00001520| 6c 65 20 77 68 65 72 65 | 20 74 68 65 20 65 78 63 |le where| the exc|
|00001530| 68 61 6e 67 65 20 6e 75 | 6d 62 65 72 73 20 61 72 |hange nu|mbers ar|
|00001540| 65 20 6b 65 70 74 20 2a | 2f 0a 58 09 69 6e 74 20 |e kept *|/.X.int |
|00001550| 61 5f 6c 69 73 74 5b 31 | 30 30 30 5d 3b 09 2f 2a |a_list[1|000];./*|
|00001560| 20 74 68 65 20 6c 69 73 | 74 20 6f 66 20 76 61 6c | the lis|t of val|
|00001570| 69 64 20 6e 75 6d 62 65 | 72 73 20 69 6e 20 74 68 |id numbe|rs in th|
|00001580| 65 20 65 78 63 68 61 67 | 65 20 2a 2f 0a 58 09 69 |e exchag|e */.X.i|
|00001590| 6e 74 20 61 5f 63 6f 75 | 6e 74 3b 09 09 2f 2a 20 |nt a_cou|nt;../* |
|000015a0| 63 6f 75 6e 74 20 6f 66 | 20 68 6f 77 20 6d 61 6e |count of| how man|
|000015b0| 79 20 69 6e 20 61 5f 6c | 69 73 74 20 2a 2f 0a 58 |y in a_l|ist */.X|
|000015c0| 7d 20 41 52 52 41 59 3b | 0a 58 0a 58 76 6f 69 64 |} ARRAY;|.X.Xvoid|
|000015d0| 20 65 78 69 74 28 29 2c | 0a 58 09 20 64 6f 5f 69 | exit(),|.X. do_i|
|000015e0| 74 28 29 2c 0a 58 09 20 | 73 74 72 69 70 28 29 2c |t(),.X. |strip(),|
|000015f0| 0a 58 09 20 70 72 69 6e | 74 5f 69 74 28 29 2c 0a |.X. prin|t_it(),.|
|00001600| 58 09 20 6d 61 6b 65 5f | 73 70 61 63 65 28 29 2c |X. make_|space(),|
|00001610| 0a 58 09 20 67 65 74 5f | 61 72 72 61 79 73 28 29 |.X. get_|arrays()|
|00001620| 3b 0a 58 0a 58 63 68 61 | 72 20 2a 62 73 65 61 72 |;.X.Xcha|r *bsear|
|00001630| 63 68 28 29 2c 0a 58 09 | 20 2a 53 74 72 64 75 70 |ch(),.X.| *Strdup|
|00001640| 28 29 3b 0a 58 0a 58 69 | 6e 74 20 69 6e 74 63 6d |();.X.Xi|nt intcm|
|00001650| 70 28 29 3b 0a 58 0a 58 | 23 69 66 64 65 66 20 43 |p();.X.X|#ifdef C|
|00001660| 48 49 43 41 47 4f 0a 58 | 69 6e 74 20 6f 6c 64 5f |HICAGO.X|int old_|
|00001670| 61 72 79 5b 5d 20 3d 20 | 7b 20 33 31 32 2c 20 32 |ary[] = |{ 312, 2|
|00001680| 30 32 2c 20 32 30 33 2c | 20 32 30 34 2c 20 32 30 |02, 203,| 204, 20|
|00001690| 37 2c 20 32 31 34 2c 20 | 32 32 30 2c 20 32 32 31 |7, 214, |220, 221|
|000016a0| 2c 20 32 32 32 2c 20 32 | 32 34 2c 20 32 32 35 2c |, 222, 2|24, 225,|
|000016b0| 20 32 32 36 2c 0a 58 32 | 32 37 2c 20 32 32 39 2c | 226,.X2|27, 229,|
|000016c0| 20 32 33 30 2c 20 32 33 | 33 2c 20 32 33 35 2c 20 | 230, 23|3, 235, |
|000016d0| 32 33 36 2c 20 32 33 37 | 2c 20 32 33 38 2c 20 32 |236, 237|, 238, 2|
|000016e0| 33 39 2c 20 32 34 31 2c | 20 32 34 32 2c 20 32 34 |39, 241,| 242, 24|
|000016f0| 33 2c 20 32 34 35 2c 20 | 32 34 37 2c 20 32 34 38 |3, 245, |247, 248|
|00001700| 2c 0a 58 32 35 32 2c 20 | 32 35 34 2c 20 32 36 31 |,.X252, |254, 261|
|00001710| 2c 20 32 36 32 2c 20 32 | 36 33 2c 20 32 36 34 2c |, 262, 2|63, 264,|
|00001720| 20 32 36 35 2c 20 32 36 | 36 2c 20 32 36 37 2c 20 | 265, 26|6, 267, |
|00001730| 32 36 38 2c 20 32 36 39 | 2c 20 32 37 31 2c 20 32 |268, 269|, 271, 2|
|00001740| 37 33 2c 20 32 37 34 2c | 20 32 37 35 2c 0a 58 32 |73, 274,| 275,.X2|
|00001750| 37 36 2c 20 32 37 37 2c | 20 32 37 38 2c 20 32 38 |76, 277,| 278, 28|
|00001760| 30 2c 20 32 38 31 2c 20 | 32 38 32 2c 20 32 38 33 |0, 281, |282, 283|
|00001770| 2c 20 32 38 34 2c 20 32 | 38 35 2c 20 32 38 36 2c |, 284, 2|85, 286,|
|00001780| 20 32 38 37 2c 20 32 38 | 38 2c 20 32 39 32 2c 20 | 287, 28|8, 292, |
|00001790| 32 39 34 2c 20 33 30 32 | 2c 0a 58 33 30 36 2c 20 |294, 302|,.X306, |
|000017a0| 33 30 38 2c 20 33 31 33 | 2c 20 33 31 35 2c 20 33 |308, 313|, 315, 3|
|000017b0| 31 36 2c 20 33 32 31 2c | 20 33 32 32 2c 20 33 32 |16, 321,| 322, 32|
|000017c0| 34 2c 20 33 32 36 2c 20 | 33 32 37 2c 20 33 32 39 |4, 326, |327, 329|
|000017d0| 2c 20 33 33 32 2c 20 33 | 33 34 2c 20 33 33 37 2c |, 332, 3|34, 337,|
|000017e0| 20 33 33 38 2c 0a 58 33 | 34 31 2c 20 33 34 32 2c | 338,.X3|41, 342,|
|000017f0| 20 33 34 36 2c 20 33 34 | 37 2c 20 33 34 38 2c 20 | 346, 34|7, 348, |
|00001800| 33 35 33 2c 20 33 36 33 | 2c 20 33 36 38 2c 20 33 |353, 363|, 368, 3|
|00001810| 37 32 2c 20 33 37 34 2c | 20 33 37 35 2c 20 33 37 |72, 374,| 375, 37|
|00001820| 36 2c 20 33 37 38 2c 20 | 33 37 39 2c 20 33 38 30 |6, 378, |379, 380|
|00001830| 2c 0a 58 33 38 34 2c 20 | 33 39 39 2c 20 34 30 31 |,.X384, |399, 401|
|00001840| 2c 20 34 30 34 2c 20 34 | 30 37 2c 20 34 30 38 2c |, 404, 4|07, 408,|
|00001850| 20 34 31 30 2c 20 34 31 | 33 2c 20 34 31 35 2c 20 | 410, 41|3, 415, |
|00001860| 34 31 37 2c 20 34 31 39 | 2c 20 34 32 31 2c 20 34 |417, 419|, 421, 4|
|00001870| 32 37 2c 20 34 33 31 2c | 20 34 33 34 2c 0a 58 34 |27, 431,| 434,.X4|
|00001880| 33 35 2c 20 34 33 36 2c | 20 34 34 30 2c 20 34 34 |35, 436,| 440, 44|
|00001890| 33 2c 20 34 34 34 2c 20 | 34 34 35 2c 20 34 35 34 |3, 444, |445, 454|
|000018a0| 2c 20 34 36 31 2c 20 34 | 36 33 2c 20 34 36 35 2c |, 461, 4|63, 465,|
|000018b0| 20 34 36 37 2c 20 34 36 | 38 2c 20 34 37 31 2c 20 | 467, 46|8, 471, |
|000018c0| 34 37 32 2c 20 34 37 36 | 2c 0a 58 34 37 37 2c 20 |472, 476|,.X477, |
|000018d0| 34 37 38 2c 20 34 38 33 | 2c 20 34 38 36 2c 20 34 |478, 483|, 486, 4|
|000018e0| 38 37 2c 20 34 38 38 2c | 20 34 38 39 2c 20 34 39 |87, 488,| 489, 49|
|000018f0| 33 2c 20 35 30 32 2c 20 | 35 30 34 2c 20 35 30 37 |3, 502, |504, 507|
|00001900| 2c 20 35 30 38 2c 20 35 | 30 39 2c 20 35 31 34 2c |, 508, 5|09, 514,|
|00001910| 20 35 32 31 2c 0a 58 35 | 32 32 2c 20 35 32 33 2c | 521,.X5|22, 523,|
|00001920| 20 35 32 35 2c 20 35 32 | 37 2c 20 35 32 38 2c 20 | 525, 52|7, 528, |
|00001930| 35 33 33 2c 20 35 33 36 | 2c 20 35 33 38 2c 20 35 |533, 536|, 538, 5|
|00001940| 33 39 2c 20 35 34 32 2c | 20 35 34 35 2c 20 35 34 |39, 542,| 545, 54|
|00001950| 38 2c 20 35 34 39 2c 20 | 35 35 30 2c 20 35 35 35 |8, 549, |550, 555|
|00001960| 2c 0a 58 35 35 38 2c 20 | 35 35 39 2c 20 35 36 31 |,.X558, |559, 561|
|00001970| 2c 20 35 36 35 2c 20 35 | 36 37 2c 20 35 36 38 2c |, 565, 5|67, 568,|
|00001980| 20 35 36 39 2c 20 35 38 | 30 2c 20 35 38 31 2c 20 | 569, 58|0, 581, |
|00001990| 35 38 32 2c 20 35 38 33 | 2c 20 35 38 35 2c 20 35 |582, 583|, 585, 5|
|000019a0| 38 36 2c 20 35 38 38 2c | 20 35 38 39 2c 0a 58 35 |86, 588,| 589,.X5|
|000019b0| 39 31 2c 20 35 39 32 2c | 20 36 30 31 2c 20 36 30 |91, 592,| 601, 60|
|000019c0| 32 2c 20 36 30 34 2c 20 | 36 30 36 2c 20 36 30 37 |2, 604, |606, 607|
|000019d0| 2c 20 36 30 38 2c 20 36 | 30 39 2c 20 36 31 33 2c |, 608, 6|09, 613,|
|000019e0| 20 36 31 36 2c 20 36 31 | 38 2c 20 36 32 31 2c 20 | 616, 61|8, 621, |
|000019f0| 36 32 32 2c 20 36 32 34 | 2c 0a 58 36 32 35 2c 20 |622, 624|,.X625, |
|00001a00| 36 32 36 2c 20 36 33 30 | 2c 20 36 33 31 2c 20 36 |626, 630|, 631, 6|
|00001a10| 33 33 2c 20 36 33 37 2c | 20 36 33 38 2c 20 36 34 |33, 637,| 638, 64|
|00001a20| 31 2c 20 36 34 32 2c 20 | 36 34 33 2c 20 36 34 34 |1, 642, |643, 644|
|00001a30| 2c 20 36 34 35 2c 20 36 | 34 36 2c 20 36 34 38 2c |, 645, 6|46, 648,|
|00001a40| 20 36 34 39 2c 0a 58 36 | 35 30 2c 20 36 35 31 2c | 649,.X6|50, 651,|
|00001a50| 20 36 35 39 2c 20 36 36 | 30 2c 20 36 36 31 2c 20 | 659, 66|0, 661, |
|00001a60| 36 36 33 2c 20 36 36 34 | 2c 20 36 36 36 2c 20 36 |663, 664|, 666, 6|
|00001a70| 36 37 2c 20 36 37 30 2c | 20 36 38 34 2c 20 36 38 |67, 670,| 684, 68|
|00001a80| 35 2c 20 36 38 36 2c 20 | 36 39 33 2c 20 36 39 34 |5, 686, |693, 694|
|00001a90| 2c 0a 58 37 30 31 2c 20 | 37 30 32 2c 20 37 30 33 |,.X701, |702, 703|
|00001aa0| 2c 20 37 30 34 2c 20 37 | 30 37 2c 20 37 31 32 2c |, 704, 7|07, 712,|
|00001ab0| 20 37 31 34 2c 20 37 31 | 35 2c 20 37 31 36 2c 20 | 714, 71|5, 716, |
|00001ac0| 37 31 38 2c 20 37 32 31 | 2c 20 37 32 32 2c 20 37 |718, 721|, 722, 7|
|00001ad0| 32 33 2c 20 37 32 35 2c | 20 37 32 36 2c 0a 58 37 |23, 725,| 726,.X7|
|00001ae0| 32 37 2c 20 37 32 38 2c | 20 37 33 31 2c 20 37 33 |27, 728,| 731, 73|
|00001af0| 32 2c 20 37 33 33 2c 20 | 37 33 34 2c 20 37 33 35 |2, 733, |734, 735|
|00001b00| 2c 20 37 33 36 2c 20 37 | 33 37 2c 20 37 33 38 2c |, 736, 7|37, 738,|
|00001b10| 20 37 34 33 2c 20 37 34 | 34 2c 20 37 34 35 2c 20 | 743, 74|4, 745, |
|00001b20| 37 35 30 2c 20 37 35 31 | 2c 0a 58 37 35 32 2c 20 |750, 751|,.X752, |
|00001b30| 37 35 33 2c 20 37 36 30 | 2c 20 37 36 31 2c 20 37 |753, 760|, 761, 7|
|00001b40| 36 32 2c 20 37 36 33 2c | 20 37 36 34 2c 20 37 36 |62, 763,| 764, 76|
|00001b50| 35 2c 20 37 36 37 2c 20 | 37 36 38 2c 20 37 36 39 |5, 767, |768, 769|
|00001b60| 2c 20 37 37 30 2c 20 37 | 37 32 2c 20 37 37 34 2c |, 770, 7|72, 774,|
|00001b70| 20 37 37 35 2c 0a 58 37 | 37 36 2c 20 37 37 37 2c | 775,.X7|76, 777,|
|00001b80| 20 37 37 38 2c 20 37 37 | 39 2c 20 37 38 31 2c 20 | 778, 77|9, 781, |
|00001b90| 37 38 32 2c 20 37 38 33 | 2c 20 37 38 34 2c 20 37 |782, 783|, 784, 7|
|00001ba0| 38 35 2c 20 37 38 36 2c | 20 37 38 37 2c 20 37 39 |85, 786,| 787, 79|
|00001bb0| 31 2c 20 37 39 32 2c 20 | 37 39 33 2c 20 37 39 34 |1, 792, |793, 794|
|00001bc0| 2c 0a 58 37 39 36 2c 20 | 37 39 37 2c 20 38 30 32 |,.X796, |797, 802|
|00001bd0| 2c 20 38 30 34 2c 20 38 | 30 35 2c 20 38 30 37 2c |, 804, 8|05, 807,|
|00001be0| 20 38 30 38 2c 20 38 31 | 32 2c 20 38 31 34 2c 20 | 808, 81|2, 814, |
|00001bf0| 38 31 39 2c 20 38 32 31 | 2c 20 38 32 32 2c 20 38 |819, 821|, 822, 8|
|00001c00| 32 36 2c 20 38 32 38 2c | 20 38 32 39 2c 0a 58 38 |26, 828,| 829,.X8|
|00001c10| 33 36 2c 20 38 33 38 2c | 20 38 34 32 2c 20 38 34 |36, 838,| 842, 84|
|00001c20| 35 2c 20 38 34 36 2c 20 | 38 34 37 2c 20 38 35 33 |5, 846, |847, 853|
|00001c30| 2c 20 38 35 34 2c 20 38 | 35 35 2c 20 38 35 36 2c |, 854, 8|55, 856,|
|00001c40| 20 38 36 31 2c 20 38 37 | 31 2c 20 38 37 33 2c 20 | 861, 87|1, 873, |
|00001c50| 38 37 34 2c 20 38 37 35 | 2c 0a 58 38 37 36 2c 20 |874, 875|,.X876, |
|00001c60| 38 37 38 2c 20 38 38 30 | 2c 20 38 38 31 2c 20 38 |878, 880|, 881, 8|
|00001c70| 38 33 2c 20 38 38 36 2c | 20 38 38 39 2c 20 38 39 |83, 886,| 889, 89|
|00001c80| 30 2c 20 38 39 39 2c 20 | 39 30 31 2c 20 39 30 32 |0, 899, |901, 902|
|00001c90| 2c 20 39 30 33 2c 20 39 | 30 36 2c 20 39 30 37 2c |, 903, 9|06, 907,|
|00001ca0| 20 39 30 38 2c 0a 58 39 | 30 39 2c 20 39 31 34 2c | 908,.X9|09, 914,|
|00001cb0| 20 39 31 35 2c 20 39 31 | 37 2c 20 39 31 38 2c 20 | 915, 91|7, 918, |
|00001cc0| 39 31 39 2c 20 39 32 31 | 2c 20 39 32 32 2c 20 39 |919, 921|, 922, 9|
|00001cd0| 32 33 2c 20 39 32 34 2c | 20 39 32 35 2c 20 39 32 |23, 924,| 925, 92|
|00001ce0| 37 2c 20 39 32 39 2c 20 | 39 33 30 2c 20 39 33 33 |7, 929, |930, 933|
|00001cf0| 2c 0a 58 39 33 35 2c 20 | 39 33 36 2c 20 39 33 38 |,.X935, |936, 938|
|00001d00| 2c 20 39 33 39 2c 20 39 | 34 32 2c 20 39 34 33 2c |, 939, 9|42, 943,|
|00001d10| 20 39 34 34 2c 20 39 34 | 37 2c 20 39 35 31 2c 20 | 944, 94|7, 951, |
|00001d20| 39 35 35 2c 20 39 36 32 | 2c 20 39 37 33 2c 20 39 |955, 962|, 973, 9|
|00001d30| 37 35 2c 20 39 37 36 2c | 20 39 37 37 2c 0a 58 39 |75, 976,| 977,.X9|
|00001d40| 37 38 2c 20 39 38 34 2c | 20 39 38 37 2c 20 39 38 |78, 984,| 987, 98|
|00001d50| 38 2c 20 39 38 39 2c 20 | 39 39 32 2c 20 39 39 33 |8, 989, |992, 993|
|00001d60| 2c 20 39 39 34 2c 20 39 | 39 35 2c 20 39 39 36 2c |, 994, 9|95, 996,|
|00001d70| 20 39 39 37 2c 20 30 20 | 0a 58 7d 3b 0a 58 0a 58 | 997, 0 |.X};.X.X|
|00001d80| 69 6e 74 20 6e 65 77 5f | 61 72 79 5b 5d 20 3d 20 |int new_|ary[] = |
|00001d90| 7b 20 37 30 38 2c 20 32 | 30 31 2c 20 32 30 35 2c |{ 708, 2|01, 205,|
|00001da0| 20 32 30 36 2c 20 32 30 | 38 2c 20 32 30 39 2c 20 | 206, 20|8, 209, |
|00001db0| 32 31 30 2c 0a 58 32 31 | 33 2c 20 32 31 35 2c 20 |210,.X21|3, 215, |
|00001dc0| 32 31 36 2c 20 32 31 38 | 2c 20 32 32 33 2c 20 32 |216, 218|, 223, 2|
|00001dd0| 32 38 2c 20 32 33 31 2c | 20 32 33 32 2c 20 32 33 |28, 231,| 232, 23|
|00001de0| 34 2c 20 32 34 30 2c 20 | 32 34 34 2c 20 32 34 36 |4, 240, |244, 246|
|00001df0| 2c 0a 58 32 34 39 2c 20 | 32 35 30 2c 20 32 35 31 |,.X249, |250, 251|
|00001e00| 2c 20 32 35 33 2c 20 32 | 35 35 2c 20 32 35 36 2c |, 253, 2|55, 256,|
|00001e10| 20 32 35 37 2c 20 32 35 | 38 2c 20 32 35 39 2c 20 | 257, 25|8, 259, |
|00001e20| 32 36 30 2c 20 32 37 32 | 2c 20 32 37 39 2c 20 0a |260, 272|, 279, .|
|00001e30| 58 32 38 39 2c 20 32 39 | 30 2c 20 32 39 31 2c 20 |X289, 29|0, 291, |
|00001e40| 32 39 33 2c 20 32 39 35 | 2c 20 32 39 36 2c 20 32 |293, 295|, 296, 2|
|00001e50| 39 37 2c 20 32 39 38 2c | 20 32 39 39 2c 20 33 30 |97, 298,| 299, 30|
|00001e60| 31 2c 20 33 30 33 2c 20 | 33 30 34 2c 0a 58 33 30 |1, 303, |304,.X30|
|00001e70| 35 2c 20 33 30 37 2c 20 | 33 31 30 2c 20 33 31 34 |5, 307, |310, 314|
|00001e80| 2c 20 33 31 37 2c 20 33 | 31 38 2c 20 33 31 39 2c |, 317, 3|18, 319,|
|00001e90| 20 33 32 33 2c 20 33 32 | 35 2c 20 33 32 38 2c 20 | 323, 32|5, 328, |
|00001ea0| 33 33 30 2c 20 33 33 31 | 2c 0a 58 33 33 33 2c 20 |330, 331|,.X333, |
|00001eb0| 33 33 35 2c 20 33 33 36 | 2c 20 33 33 39 2c 20 33 |335, 336|, 339, 3|
|00001ec0| 34 33 2c 20 33 34 34 2c | 20 33 34 35 2c 20 33 34 |43, 344,| 345, 34|
|00001ed0| 39 2c 20 33 35 30 2c 20 | 33 35 31 2c 20 33 35 32 |9, 350, |351, 352|
|00001ee0| 2c 20 33 35 34 2c 0a 58 | 33 35 35 2c 20 33 35 36 |, 354,.X|355, 356|
|00001ef0| 2c 20 33 35 37 2c 20 33 | 35 38 2c 20 33 35 39 2c |, 357, 3|58, 359,|
|00001f00| 20 33 36 30 2c 20 33 36 | 31 2c 20 33 36 32 2c 20 | 360, 36|1, 362, |
|00001f10| 33 36 34 2c 20 33 36 35 | 2c 20 33 36 36 2c 20 33 |364, 365|, 366, 3|
|00001f20| 36 37 2c 0a 58 33 36 39 | 2c 20 33 37 31 2c 20 33 |67,.X369|, 371, 3|
|00001f30| 37 37 2c 20 33 38 31 2c | 20 33 38 32 2c 20 33 38 |77, 381,| 382, 38|
|00001f40| 33 2c 20 33 38 35 2c 20 | 33 38 36 2c 20 33 38 37 |3, 385, |386, 387|
|00001f50| 2c 20 33 38 38 2c 20 33 | 38 39 2c 20 33 39 30 2c |, 388, 3|89, 390,|
|00001f60| 0a 58 33 39 31 2c 20 33 | 39 32 2c 20 33 39 33 2c |.X391, 3|92, 393,|
|00001f70| 20 33 39 34 2c 20 33 39 | 35 2c 20 33 39 36 2c 20 | 394, 39|5, 396, |
|00001f80| 33 39 37 2c 20 33 39 38 | 2c 20 34 30 32 2c 20 34 |397, 398|, 402, 4|
|00001f90| 30 33 2c 20 34 30 35 2c | 20 34 30 36 2c 0a 58 34 |03, 405,| 406,.X4|
|00001fa0| 30 39 2c 20 34 31 32 2c | 20 34 31 36 2c 20 34 31 |09, 412,| 416, 41|
|00001fb0| 38 2c 20 34 32 30 2c 20 | 34 32 32 2c 20 34 32 33 |8, 420, |422, 423|
|00001fc0| 2c 20 34 32 34 2c 20 34 | 32 35 2c 20 34 32 36 2c |, 424, 4|25, 426,|
|00001fd0| 20 34 32 38 2c 20 34 32 | 39 2c 0a 58 34 33 30 2c | 428, 42|9,.X430,|
|00001fe0| 20 34 33 32 2c 20 34 33 | 33 2c 20 34 33 37 2c 20 | 432, 43|3, 437, |
|00001ff0| 34 33 38 2c 20 34 33 39 | 2c 20 34 34 31 2c 20 34 |438, 439|, 441, 4|
|00002000| 34 32 2c 20 34 34 36 2c | 20 34 34 37 2c 20 34 34 |42, 446,| 447, 44|
|00002010| 38 2c 20 34 34 39 2c 0a | 58 34 35 30 2c 20 34 35 |8, 449,.|X450, 45|
|00002020| 31 2c 20 34 35 32 2c 20 | 34 35 33 2c 20 34 35 35 |1, 452, |453, 455|
|00002030| 2c 20 34 35 36 2c 20 34 | 35 37 2c 20 34 35 38 2c |, 456, 4|57, 458,|
|00002040| 20 34 35 39 2c 20 34 36 | 30 2c 20 34 36 32 2c 20 | 459, 46|0, 462, |
|00002050| 34 36 34 2c 0a 58 34 36 | 36 2c 20 34 36 39 2c 20 |464,.X46|6, 469, |
|00002060| 34 37 30 2c 20 34 37 33 | 2c 20 34 37 34 2c 20 34 |470, 473|, 474, 4|
|00002070| 37 35 2c 20 34 37 39 2c | 20 34 38 30 2c 20 34 38 |75, 479,| 480, 48|
|00002080| 31 2c 20 34 38 32 2c 20 | 34 38 34 2c 20 34 38 35 |1, 482, |484, 485|
|00002090| 2c 0a 58 34 39 30 2c 20 | 34 39 31 2c 20 34 39 32 |,.X490, |491, 492|
|000020a0| 2c 20 34 39 35 2c 20 34 | 39 36 2c 20 34 39 37 2c |, 495, 4|96, 497,|
|000020b0| 20 34 39 38 2c 20 34 39 | 39 2c 20 35 30 31 2c 20 | 498, 49|9, 501, |
|000020c0| 35 30 33 2c 20 35 30 35 | 2c 20 35 30 36 2c 0a 58 |503, 505|, 506,.X|
|000020d0| 35 31 30 2c 20 35 31 32 | 2c 20 35 31 33 2c 20 35 |510, 512|, 513, 5|
|000020e0| 31 35 2c 20 35 31 36 2c | 20 35 31 37 2c 20 35 31 |15, 516,| 517, 51|
|000020f0| 38 2c 20 35 31 39 2c 20 | 35 32 30 2c 20 35 32 34 |8, 519, |520, 524|
|00002100| 2c 20 35 32 36 2c 20 35 | 32 39 2c 0a 58 35 33 30 |, 526, 5|29,.X530|
|00002110| 2c 20 35 33 31 2c 20 35 | 33 32 2c 20 35 33 34 2c |, 531, 5|32, 534,|
|00002120| 20 35 33 35 2c 20 35 33 | 37 2c 20 35 34 30 2c 20 | 535, 53|7, 540, |
|00002130| 35 34 31 2c 20 35 34 33 | 2c 20 35 34 34 2c 20 35 |541, 543|, 544, 5|
|00002140| 34 36 2c 20 35 34 37 2c | 0a 58 35 35 31 2c 20 35 |46, 547,|.X551, 5|
|00002150| 35 32 2c 20 35 35 33 2c | 20 35 35 34 2c 20 35 35 |52, 553,| 554, 55|
|00002160| 35 2c 20 35 35 36 2c 20 | 35 35 37 2c 20 35 36 30 |5, 556, |557, 560|
|00002170| 2c 20 35 36 32 2c 20 35 | 36 33 2c 20 35 36 34 2c |, 562, 5|63, 564,|
|00002180| 20 35 36 36 2c 0a 58 35 | 37 30 2c 20 35 37 31 2c | 566,.X5|70, 571,|
|00002190| 20 35 37 32 2c 20 35 37 | 33 2c 20 35 37 34 2c 20 | 572, 57|3, 574, |
|000021a0| 35 37 35 2c 20 35 37 36 | 2c 20 35 37 37 2c 20 35 |575, 576|, 577, 5|
|000021b0| 37 38 2c 20 35 37 39 2c | 20 35 38 34 2c 20 35 38 |78, 579,| 584, 58|
|000021c0| 37 2c 0a 58 35 39 30 2c | 20 35 39 31 2c 20 35 39 |7,.X590,| 591, 59|
|000021d0| 33 2c 20 35 39 34 2c 20 | 35 39 35 2c 20 35 39 36 |3, 594, |595, 596|
|000021e0| 2c 20 35 39 37 2c 20 35 | 39 38 2c 20 35 39 39 2c |, 597, 5|98, 599,|
|000021f0| 20 36 30 33 2c 20 36 30 | 35 2c 20 36 31 32 2c 0a | 603, 60|5, 612,.|
|00002200| 58 36 31 34 2c 20 36 31 | 35 2c 20 36 31 37 2c 20 |X614, 61|5, 617, |
|00002210| 36 31 39 2c 20 36 32 30 | 2c 20 36 32 33 2c 20 36 |619, 620|, 623, 6|
|00002220| 32 37 2c 20 36 32 38 2c | 20 36 32 39 2c 20 36 33 |27, 628,| 629, 63|
|00002230| 32 2c 20 36 33 34 2c 20 | 36 33 35 2c 0a 58 36 33 |2, 634, |635,.X63|
|00002240| 36 2c 20 36 33 39 2c 20 | 36 34 30 2c 20 36 34 37 |6, 639, |640, 647|
|00002250| 2c 20 36 35 32 2c 20 36 | 35 33 2c 20 36 35 34 2c |, 652, 6|53, 654,|
|00002260| 20 36 35 35 2c 20 36 35 | 36 2c 20 36 35 37 2c 20 | 655, 65|6, 657, |
|00002270| 36 35 38 2c 20 36 36 32 | 2c 0a 58 36 36 35 2c 20 |658, 662|,.X665, |
|00002280| 36 36 38 2c 20 36 36 39 | 2c 20 36 37 31 2c 20 36 |668, 669|, 671, 6|
|00002290| 37 32 2c 20 36 37 33 2c | 20 36 37 34 2c 20 36 37 |72, 673,| 674, 67|
|000022a0| 35 2c 20 36 37 36 2c 20 | 36 37 37 2c 20 36 37 38 |5, 676, |677, 678|
|000022b0| 2c 20 36 37 39 2c 0a 58 | 36 38 30 2c 20 36 38 31 |, 679,.X|680, 681|
|000022c0| 2c 20 36 38 32 2c 20 36 | 38 33 2c 20 36 38 37 2c |, 682, 6|83, 687,|
|000022d0| 20 36 38 38 2c 20 36 38 | 39 2c 20 36 39 30 2c 20 | 688, 68|9, 690, |
|000022e0| 36 39 31 2c 20 36 39 32 | 2c 20 36 39 35 2c 20 36 |691, 692|, 695, 6|
|000022f0| 39 36 2c 0a 58 36 39 37 | 2c 20 36 39 38 2c 20 36 |96,.X697|, 698, 6|
|00002300| 39 39 2c 20 37 30 35 2c | 20 37 30 36 2c 20 37 30 |99, 705,| 706, 70|
|00002310| 39 2c 20 37 31 33 2c 20 | 37 31 37 2c 20 37 31 39 |9, 713, |717, 719|
|00002320| 2c 20 37 32 30 2c 20 37 | 32 34 2c 20 37 32 39 2c |, 720, 7|24, 729,|
|00002330| 0a 58 37 33 30 2c 20 37 | 33 39 2c 20 37 34 30 2c |.X730, 7|39, 740,|
|00002340| 20 37 34 31 2c 20 37 34 | 32 2c 20 37 34 36 2c 20 | 741, 74|2, 746, |
|00002350| 37 34 37 2c 20 37 34 38 | 2c 20 37 34 39 2c 20 37 |747, 748|, 749, 7|
|00002360| 35 34 2c 20 37 35 35 2c | 20 37 35 36 2c 0a 58 37 |54, 755,| 756,.X7|
|00002370| 35 37 2c 20 37 35 38 2c | 20 37 35 39 2c 20 37 36 |57, 758,| 759, 76|
|00002380| 36 2c 20 37 37 31 2c 20 | 37 37 33 2c 20 37 38 30 |6, 771, |773, 780|
|00002390| 2c 20 37 38 38 2c 20 37 | 38 39 2c 20 37 39 30 2c |, 788, 7|89, 790,|
|000023a0| 20 37 39 35 2c 20 37 39 | 36 2c 0a 58 37 39 38 2c | 795, 79|6,.X798,|
|000023b0| 20 37 39 39 2c 20 38 30 | 31 2c 20 38 30 33 2c 20 | 799, 80|1, 803, |
|000023c0| 38 30 36 2c 20 38 31 30 | 2c 20 38 31 36 2c 20 38 |806, 810|, 816, 8|
|000023d0| 31 37 2c 20 38 31 38 2c | 20 38 32 30 2c 20 38 32 |17, 818,| 820, 82|
|000023e0| 33 2c 20 38 32 34 2c 0a | 58 38 32 35 2c 20 38 32 |3, 824,.|X825, 82|
|000023f0| 37 2c 20 38 33 30 2c 20 | 38 33 31 2c 20 38 33 32 |7, 830, |831, 832|
|00002400| 2c 20 38 33 33 2c 20 38 | 33 34 2c 20 38 33 35 2c |, 833, 8|34, 835,|
|00002410| 20 38 33 37 2c 20 38 33 | 39 2c 20 38 34 30 2c 20 | 837, 83|9, 840, |
|00002420| 38 34 31 2c 0a 58 38 34 | 33 2c 20 38 34 34 2c 20 |841,.X84|3, 844, |
|00002430| 38 34 38 2c 20 38 34 39 | 2c 20 38 35 30 2c 20 38 |848, 849|, 850, 8|
|00002440| 35 31 2c 20 38 35 32 2c | 20 38 35 37 2c 20 38 35 |51, 852,| 857, 85|
|00002450| 38 2c 20 38 35 39 2c 20 | 38 36 30 2c 20 38 36 32 |8, 859, |860, 862|
|00002460| 2c 0a 58 38 36 33 2c 20 | 38 36 34 2c 20 38 36 35 |,.X863, |864, 865|
|00002470| 2c 20 38 36 36 2c 20 38 | 36 37 2c 20 38 36 38 2c |, 866, 8|67, 868,|
|00002480| 20 38 36 39 2c 20 38 37 | 30 2c 20 38 37 32 2c 20 | 869, 87|0, 872, |
|00002490| 38 37 37 2c 20 38 37 39 | 2c 20 38 38 32 2c 0a 58 |877, 879|, 882,.X|
|000024a0| 38 38 34 2c 20 38 38 35 | 2c 20 38 38 37 2c 20 38 |884, 885|, 887, 8|
|000024b0| 38 38 2c 20 38 39 31 2c | 20 38 39 32 2c 20 38 39 |88, 891,| 892, 89|
|000024c0| 33 2c 20 38 39 34 2c 20 | 38 39 35 2c 20 38 39 36 |3, 894, |895, 896|
|000024d0| 2c 20 38 39 37 2c 20 38 | 39 38 2c 0a 58 39 30 34 |, 897, 8|98,.X904|
|000024e0| 2c 20 39 30 35 2c 20 39 | 31 30 2c 20 39 31 33 2c |, 905, 9|10, 913,|
|000024f0| 20 39 31 36 2c 20 39 32 | 30 2c 20 39 32 36 2c 20 | 916, 92|0, 926, |
|00002500| 39 33 31 2c 20 39 33 32 | 2c 20 39 33 34 2c 20 39 |931, 932|, 934, 9|
|00002510| 33 37 2c 20 39 34 30 2c | 0a 58 39 34 31 2c 20 39 |37, 940,|.X941, 9|
|00002520| 34 35 2c 20 39 34 36 2c | 20 39 34 38 2c 20 39 34 |45, 946,| 948, 94|
|00002530| 39 2c 20 39 35 32 2c 20 | 39 35 33 2c 20 39 35 34 |9, 952, |953, 954|
|00002540| 2c 20 39 35 36 2c 20 39 | 35 37 2c 20 39 36 30 2c |, 956, 9|57, 960,|
|00002550| 20 39 36 31 2c 0a 58 39 | 36 33 2c 20 39 36 34 2c | 961,.X9|63, 964,|
|00002560| 20 39 36 35 2c 20 39 36 | 36 2c 20 39 36 37 2c 20 | 965, 96|6, 967, |
|00002570| 39 36 38 2c 20 39 36 39 | 2c 20 39 37 31 2c 20 39 |968, 969|, 971, 9|
|00002580| 37 32 2c 20 39 37 34 2c | 20 39 37 36 2c 20 39 37 |72, 974,| 976, 97|
|00002590| 39 2c 0a 58 39 38 30 2c | 20 39 38 31 2c 20 39 38 |9,.X980,| 981, 98|
|000025a0| 32 2c 20 39 38 33 2c 20 | 39 38 35 2c 20 39 38 36 |2, 983, |985, 986|
|000025b0| 2c 20 39 39 30 2c 20 39 | 39 31 2c 20 39 39 38 2c |, 990, 9|91, 998,|
|000025c0| 20 30 20 7d 3b 0a 58 23 | 65 6e 64 69 66 0a 58 0a | 0 };.X#|endif.X.|
|000025d0| 58 41 52 52 41 59 20 6f | 6c 64 78 2c 20 6e 65 77 |XARRAY o|ldx, new|
|000025e0| 78 3b 0a 58 41 52 52 41 | 59 20 2a 70 72 65 73 65 |x;.XARRA|Y *prese|
|000025f0| 6e 74 78 5f 70 74 72 3b | 09 09 09 2f 2a 20 74 68 |ntx_ptr;|.../* th|
|00002600| 65 20 65 78 63 68 61 6e | 67 65 20 75 73 65 72 20 |e exchan|ge user |
|00002610| 69 73 20 6e 6f 77 20 69 | 6e 20 2a 2f 0a 58 41 52 |is now i|n */.XAR|
|00002620| 52 41 59 20 2a 6f 74 68 | 65 72 78 5f 70 74 72 3b |RAY *oth|erx_ptr;|
|00002630| 09 09 09 09 2f 2a 20 65 | 78 63 68 61 6e 67 65 20 |..../* e|xchange |
|00002640| 73 2f 68 65 20 61 69 6e | 27 74 20 69 6e 20 2a 2f |s/he ain|'t in */|
|00002650| 0a 58 42 4f 4f 4c 45 41 | 4e 20 70 61 72 65 6e 73 |.XBOOLEA|N parens|
|00002660| 3b 09 09 09 09 09 2f 2a | 20 64 6f 20 77 65 20 75 |;...../*| do we u|
|00002670| 73 65 20 70 61 72 65 6e | 74 68 65 73 65 73 20 6f |se paren|theses o|
|00002680| 72 20 64 61 73 68 65 73 | 20 2a 2f 0a 58 42 4f 4f |r dashes| */.XBOO|
|00002690| 4c 45 41 4e 20 64 6f 5f | 62 6f 74 68 3b 09 09 09 |LEAN do_|both;...|
|000026a0| 09 2f 2a 20 70 75 74 20 | 69 6e 20 62 6f 74 68 20 |./* put |in both |
|000026b0| 61 72 65 61 20 63 6f 64 | 65 73 3f 20 2a 2f 0a 58 |area cod|es? */.X|
|000026c0| 42 4f 4f 4c 45 41 4e 20 | 73 74 61 72 74 5f 6f 66 |BOOLEAN |start_of|
|000026d0| 5f 6c 69 6e 65 3b 09 09 | 09 2f 2a 20 68 6f 72 72 |_line;..|./* horr|
|000026e0| 69 62 6c 65 20 6b 6c 75 | 64 67 65 20 2a 2f 0a 58 |ible klu|dge */.X|
|000026f0| 63 68 61 72 20 2a 70 72 | 6f 67 6e 61 6d 65 3b 0a |char *pr|ogname;.|
|00002700| 58 0a 58 2f 2a 0a 58 20 | 2a 20 72 65 67 75 6c 61 |X.X/*.X |* regula|
|00002710| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 20 77 68 69 |r expres|sion whi|
|00002720| 63 68 20 6c 6f 63 61 74 | 65 73 20 77 68 61 74 20 |ch locat|es what |
|00002730| 61 72 65 20 63 6f 6e 73 | 69 64 65 72 65 64 20 70 |are cons|idered p|
|00002740| 68 6f 6e 65 20 6e 75 6d | 62 65 72 73 0a 58 20 2a |hone num|bers.X *|
|00002750| 2f 0a 58 63 68 61 72 20 | 2a 5f 72 65 5f 70 68 6f |/.Xchar |*_re_pho|
|00002760| 6e 65 20 3d 20 0a 58 09 | 22 28 28 5b 5e 30 2d 39 |ne = .X.|"(([^0-9|
|00002770| 5d 5b 30 2d 39 5d 7b 33 | 7d 29 7b 30 2c 31 7d 29 |][0-9]{3|}){0,1})|
|00002780| 24 30 28 5b 5e 30 2d 39 | 5d 7b 31 2c 32 7d 29 24 |$0([^0-9|]{1,2})$|
|00002790| 31 28 5b 30 2d 39 5d 7b | 33 7d 2d 5b 30 2d 39 5d |1([0-9]{|3}-[0-9]|
|000027a0| 7b 34 7d 29 24 32 5b 5e | 30 2d 39 5d 22 3b 0a 58 |{4})$2[^|0-9]";.X|
|000027b0| 0a 58 6d 61 69 6e 28 61 | 72 67 63 2c 20 61 72 67 |.Xmain(a|rgc, arg|
|000027c0| 76 29 0a 58 69 6e 74 20 | 61 72 67 63 3b 0a 58 63 |v).Xint |argc;.Xc|
|000027d0| 68 61 72 20 2a 2a 61 72 | 67 76 3b 0a 58 7b 0a 58 |har **ar|gv;.X{.X|
|000027e0| 65 78 74 65 72 6e 20 69 | 6e 74 20 6f 70 74 69 6e |extern i|nt optin|
|000027f0| 64 2c 20 6f 70 74 65 72 | 72 3b 0a 58 65 78 74 65 |d, opter|r;.Xexte|
|00002800| 72 6e 20 63 68 61 72 20 | 2a 6f 70 74 61 72 67 3b |rn char |*optarg;|
|00002810| 0a 58 69 6e 74 20 63 3b | 0a 58 63 68 61 72 20 62 |.Xint c;|.Xchar b|
|00002820| 75 66 5b 42 55 46 53 49 | 5a 20 2f 20 32 5d 2c 20 |uf[BUFSI|Z / 2], |
|00002830| 2a 72 65 5f 70 68 6f 6e | 65 2c 20 2a 72 65 67 63 |*re_phon|e, *regc|
|00002840| 6d 70 28 29 2c 20 2a 72 | 65 67 65 78 28 29 3b 0a |mp(), *r|egex();.|
|00002850| 58 09 6f 6c 64 78 2e 61 | 5f 66 69 6c 65 20 3d 20 |X.oldx.a|_file = |
|00002860| 4f 4c 44 4e 55 4d 53 2c | 20 6e 65 77 78 2e 61 5f |OLDNUMS,| newx.a_|
|00002870| 66 69 6c 65 20 3d 20 4e | 45 57 4e 55 4d 53 3b 0a |file = N|EWNUMS;.|
|00002880| 58 09 64 6f 5f 62 6f 74 | 68 20 3d 20 46 41 4c 53 |X.do_bot|h = FALS|
|00002890| 45 3b 09 09 09 09 2f 2a | 20 6f 6e 6c 79 20 61 64 |E;..../*| only ad|
|000028a0| 64 20 6f 74 68 65 72 20 | 61 72 65 61 20 63 6f 64 |d other |area cod|
|000028b0| 65 20 2a 2f 0a 58 09 70 | 61 72 65 6e 73 20 3d 20 |e */.X.p|arens = |
|000028c0| 54 52 55 45 3b 09 09 09 | 09 09 2f 2a 20 66 6f 72 |TRUE;...|../* for|
|000028d0| 6d 61 74 20 28 38 30 30 | 29 20 72 61 74 68 65 72 |mat (800|) rather|
|000028e0| 20 74 68 61 6e 20 38 30 | 30 2d 20 2a 2f 0a 58 09 | than 80|0- */.X.|
|000028f0| 6f 70 74 65 72 72 20 3d | 20 31 3b 09 09 09 09 09 |opterr =| 1;.....|
|00002900| 09 2f 2a 20 6c 6f 63 6b | 20 67 65 74 6f 70 74 28 |./* lock| getopt(|
|00002910| 29 27 73 20 3f 20 6f 75 | 74 20 2a 2f 0a 58 09 70 |)'s ? ou|t */.X.p|
|00002920| 72 65 73 65 6e 74 78 5f | 70 74 72 20 3d 20 28 41 |resentx_|ptr = (A|
|00002930| 52 52 41 59 20 2a 29 20 | 30 3b 09 09 2f 2a 20 73 |RRAY *) |0;../* s|
|00002940| 65 65 20 69 66 20 69 74 | 20 69 73 20 73 65 74 20 |ee if it| is set |
|00002950| 6c 61 74 65 72 20 2a 2f | 0a 58 23 69 66 64 65 66 |later */|.X#ifdef|
|00002960| 20 43 48 49 43 41 47 4f | 0a 58 09 77 68 69 6c 65 | CHICAGO|.X.while|
|00002970| 20 28 28 63 20 3d 20 67 | 65 74 6f 70 74 28 61 72 | ((c = g|etopt(ar|
|00002980| 67 63 2c 20 61 72 67 76 | 2c 20 22 62 64 6f 6e 22 |gc, argv|, "bdon"|
|00002990| 29 29 20 21 3d 20 45 4f | 46 29 20 7b 0a 58 23 65 |)) != EO|F) {.X#e|
|000029a0| 6c 73 65 0a 58 09 77 68 | 69 6c 65 20 28 28 63 20 |lse.X.wh|ile ((c |
|000029b0| 3d 20 67 65 74 6f 70 74 | 28 61 72 67 63 2c 20 61 |= getopt|(argc, a|
|000029c0| 72 67 76 2c 20 22 62 64 | 6f 6e 4f 3a 4e 3a 22 29 |rgv, "bd|onO:N:")|
|000029d0| 29 20 21 3d 20 45 4f 46 | 29 20 7b 0a 58 23 65 6e |) != EOF|) {.X#en|
|000029e0| 64 69 66 0a 58 09 09 73 | 77 69 74 63 68 28 63 29 |dif.X..s|witch(c)|
|000029f0| 20 7b 0a 58 09 09 63 61 | 73 65 20 27 62 27 09 3a | {.X..ca|se 'b'.:|
|00002a00| 09 64 6f 5f 62 6f 74 68 | 20 3d 20 54 52 55 45 3b |.do_both| = TRUE;|
|00002a10| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 63 61 73 |...break|;.X..cas|
|00002a20| 65 20 27 6f 27 09 3a 09 | 70 72 65 73 65 6e 74 78 |e 'o'.:.|presentx|
|00002a30| 5f 70 74 72 20 3d 20 26 | 6f 6c 64 78 3b 09 62 72 |_ptr = &|oldx;.br|
|00002a40| 65 61 6b 3b 0a 58 09 09 | 63 61 73 65 20 27 6e 27 |eak;.X..|case 'n'|
|00002a50| 09 3a 09 70 72 65 73 65 | 6e 74 78 5f 70 74 72 20 |.:.prese|ntx_ptr |
|00002a60| 3d 20 26 6e 65 77 78 3b | 09 62 72 65 61 6b 3b 0a |= &newx;|.break;.|
|00002a70| 58 09 09 63 61 73 65 20 | 27 64 27 09 3a 09 70 61 |X..case |'d'.:.pa|
|00002a80| 72 65 6e 73 20 3d 20 46 | 41 4c 53 45 3b 09 09 09 |rens = F|ALSE;...|
|00002a90| 62 72 65 61 6b 3b 0a 58 | 23 69 66 6e 64 65 66 20 |break;.X|#ifndef |
|00002aa0| 43 48 49 43 41 47 4f 0a | 58 09 09 63 61 73 65 20 |CHICAGO.|X..case |
|00002ab0| 27 4f 27 09 3a 09 6f 6c | 64 78 2e 61 5f 66 69 6c |'O'.:.ol|dx.a_fil|
|00002ac0| 65 20 3d 20 6f 70 74 61 | 72 67 3b 09 62 72 65 61 |e = opta|rg;.brea|
|00002ad0| 6b 3b 0a 58 09 09 63 61 | 73 65 20 27 4e 27 09 3a |k;.X..ca|se 'N'.:|
|00002ae0| 09 6e 65 77 78 2e 61 5f | 66 69 6c 65 20 3d 20 6f |.newx.a_|file = o|
|00002af0| 70 74 61 72 67 3b 09 62 | 72 65 61 6b 3b 0a 58 23 |ptarg;.b|reak;.X#|
|00002b00| 65 6e 64 69 66 0a 58 09 | 09 63 61 73 65 20 27 3f |endif.X.|.case '?|
|00002b10| 27 09 3a 09 6f 75 74 28 | 29 3b 09 09 09 09 09 62 |'.:.out(|);.....b|
|00002b20| 72 65 61 6b 3b 0a 58 09 | 09 7d 0a 58 09 7d 0a 58 |reak;.X.|.}.X.}.X|
|00002b30| 09 69 66 20 28 21 70 72 | 65 73 65 6e 74 78 5f 70 |.if (!pr|esentx_p|
|00002b40| 74 72 29 20 7b 09 09 09 | 2f 2a 20 77 68 69 63 68 |tr) {...|/* which|
|00002b50| 20 65 78 63 68 61 67 65 | 20 77 65 20 61 72 65 20 | exchage| we are |
|00002b60| 69 6e 20 6d 75 73 74 20 | 62 65 20 6b 6e 6f 77 6e |in must |be known|
|00002b70| 20 2a 2f 0a 58 09 09 69 | 66 20 28 6f 70 74 69 6e | */.X..i|f (optin|
|00002b80| 64 20 3e 3d 20 61 72 67 | 63 29 20 7b 09 09 2f 2a |d >= arg|c) {../*|
|00002b90| 20 69 66 20 73 74 64 69 | 6e 20 69 73 20 72 65 64 | if stdi|n is red|
|00002ba0| 69 72 65 63 74 65 64 20 | 74 68 69 73 20 77 6f 6e |irected |this won|
|00002bb0| 27 74 20 77 6f 72 6b 20 | 2a 2f 0a 58 09 09 09 28 |'t work |*/.X...(|
|00002bc0| 76 6f 69 64 29 66 70 72 | 69 6e 74 66 28 73 74 64 |void)fpr|intf(std|
|00002bd0| 65 72 72 2c 20 0a 58 09 | 09 09 22 4f 70 74 69 6f |err, .X.|.."Optio|
|00002be0| 6e 20 2d 6f 20 6f 72 20 | 2d 6e 20 6d 75 73 74 20 |n -o or |-n must |
|00002bf0| 62 65 20 73 65 74 20 77 | 68 65 6e 20 73 74 64 69 |be set w|hen stdi|
|00002c00| 6e 20 69 73 20 72 65 64 | 69 72 65 63 74 65 64 5c |n is red|irected\|
|00002c10| 6e 22 29 3b 0a 58 09 09 | 09 65 78 69 74 28 31 29 |n");.X..|.exit(1)|
|00002c20| 3b 0a 58 09 09 7d 20 65 | 6c 73 65 20 7b 09 09 09 |;.X..} e|lse {...|
|00002c30| 09 09 2f 2a 20 73 6f 20 | 61 73 6b 20 77 68 69 63 |../* so |ask whic|
|00002c40| 68 20 65 78 63 68 61 6e | 67 65 20 77 65 20 61 72 |h exchan|ge we ar|
|00002c50| 65 20 69 6e 20 2a 2f 0a | 58 09 09 09 28 76 6f 69 |e in */.|X...(voi|
|00002c60| 64 29 20 70 72 69 6e 74 | 66 28 22 41 72 65 20 79 |d) print|f("Are y|
|00002c70| 6f 75 20 6c 6f 63 61 74 | 65 64 20 69 6e 20 74 68 |ou locat|ed in th|
|00002c80| 65 20 3c 6f 3e 6c 64 20 | 6f 72 20 3c 6e 3e 65 77 |e <o>ld |or <n>ew|
|00002c90| 20 65 78 63 68 61 6e 67 | 65 3f 22 29 3b 0a 58 09 | exchang|e?");.X.|
|00002ca0| 09 09 28 76 6f 69 64 29 | 20 73 63 61 6e 66 28 22 |..(void)| scanf("|
|00002cb0| 25 73 22 2c 20 62 75 66 | 29 3b 0a 58 09 09 09 69 |%s", buf|);.X...i|
|00002cc0| 66 20 28 2a 62 75 66 20 | 3d 3d 20 27 6f 27 20 7c |f (*buf |== 'o' ||
|00002cd0| 7c 20 2a 62 75 66 20 3d | 3d 20 27 4f 27 29 0a 58 || *buf =|= 'O').X|
|00002ce0| 09 09 09 09 70 72 65 73 | 65 6e 74 78 5f 70 74 72 |....pres|entx_ptr|
|00002cf0| 20 3d 20 26 6f 6c 64 78 | 3b 0a 58 09 09 09 65 6c | = &oldx|;.X...el|
|00002d00| 73 65 0a 58 09 09 09 09 | 70 72 65 73 65 6e 74 78 |se.X....|presentx|
|00002d10| 5f 70 74 72 20 3d 20 26 | 6e 65 77 78 3b 0a 58 09 |_ptr = &|newx;.X.|
|00002d20| 09 7d 0a 58 09 7d 0a 58 | 09 6f 74 68 65 72 78 5f |.}.X.}.X|.otherx_|
|00002d30| 70 74 72 20 3d 20 28 70 | 72 65 73 65 6e 74 78 5f |ptr = (p|resentx_|
|00002d40| 70 74 72 20 3d 3d 20 26 | 6f 6c 64 78 29 20 3f 20 |ptr == &|oldx) ? |
|00002d50| 26 6e 65 77 78 20 3a 20 | 26 6f 6c 64 78 3b 0a 58 |&newx : |&oldx;.X|
|00002d60| 09 69 66 20 28 6f 70 74 | 69 6e 64 20 3c 20 61 72 |.if (opt|ind < ar|
|00002d70| 67 63 29 20 7b 09 09 2f | 2a 20 69 6e 70 75 74 20 |gc) {../|* input |
|00002d80| 66 69 6c 65 20 6e 61 6d | 65 20 6c 69 73 74 65 64 |file nam|e listed|
|00002d90| 20 2a 2f 0a 58 09 09 69 | 66 20 28 21 66 72 65 6f | */.X..i|f (!freo|
|00002da0| 70 65 6e 28 61 72 67 76 | 5b 6f 70 74 69 6e 64 5d |pen(argv|[optind]|
|00002db0| 2c 20 22 72 22 2c 20 73 | 74 64 69 6e 29 29 20 7b |, "r", s|tdin)) {|
|00002dc0| 0a 58 09 09 09 28 76 6f | 69 64 29 66 70 72 69 6e |.X...(vo|id)fprin|
|00002dd0| 74 66 28 73 74 64 65 72 | 72 2c 20 22 25 73 20 63 |tf(stder|r, "%s c|
|00002de0| 61 6e 6e 6f 74 20 62 65 | 20 6f 70 65 6e 65 64 20 |annot be| opened |
|00002df0| 66 6f 72 20 72 65 61 64 | 69 6e 67 5c 6e 22 2c 0a |for read|ing\n",.|
|00002e00| 58 09 09 09 09 09 09 61 | 72 67 76 5b 6f 70 74 69 |X......a|rgv[opti|
|00002e10| 6e 64 5d 29 3b 0a 58 09 | 09 09 65 78 69 74 28 31 |nd]);.X.|..exit(1|
|00002e20| 29 3b 0a 58 09 09 7d 0a | 58 09 09 69 66 20 28 2b |);.X..}.|X..if (+|
|00002e30| 2b 6f 70 74 69 6e 64 20 | 3c 20 61 72 67 63 20 26 |+optind |< argc &|
|00002e40| 26 20 21 66 72 65 6f 70 | 65 6e 28 61 72 67 76 5b |& !freop|en(argv[|
|00002e50| 6f 70 74 69 6e 64 5d 2c | 20 22 72 22 2c 20 73 74 |optind],| "r", st|
|00002e60| 64 6f 75 74 29 29 20 7b | 0a 58 09 09 09 28 76 6f |dout)) {|.X...(vo|
|00002e70| 69 64 29 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |id)fprin|tf(stder|
|00002e80| 72 2c 20 22 25 73 20 63 | 61 6e 6e 6f 74 20 62 65 |r, "%s c|annot be|
|00002e90| 20 6f 70 65 6e 65 64 20 | 66 6f 72 20 72 65 61 64 | opened |for read|
|00002ea0| 69 6e 67 5c 6e 22 2c 0a | 58 09 09 09 09 09 09 61 |ing\n",.|X......a|
|00002eb0| 72 67 76 5b 6f 70 74 69 | 6e 64 5d 29 3b 0a 58 09 |rgv[opti|nd]);.X.|
|00002ec0| 09 09 65 78 69 74 28 31 | 29 3b 0a 58 09 09 7d 0a |..exit(1|);.X..}.|
|00002ed0| 58 09 7d 0a 58 09 69 66 | 20 28 21 28 72 65 5f 70 |X.}.X.if| (!(re_p|
|00002ee0| 68 6f 6e 65 20 3d 20 72 | 65 67 63 6d 70 28 5f 72 |hone = r|egcmp(_r|
|00002ef0| 65 5f 70 68 6f 6e 65 2c | 20 43 4e 55 4c 4c 29 29 |e_phone,| CNULL))|
|00002f00| 29 20 7b 0a 58 09 09 28 | 76 6f 69 64 29 66 70 72 |) {.X..(|void)fpr|
|00002f10| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|00002f20| 20 62 61 64 20 72 65 67 | 75 6c 61 72 20 65 78 70 | bad reg|ular exp|
|00002f30| 72 65 73 73 69 6f 6e 5c | 6e 22 2c 20 5f 72 65 5f |ression\|n", _re_|
|00002f40| 70 68 6f 6e 65 29 3b 0a | 58 09 09 65 78 69 74 28 |phone);.|X..exit(|
|00002f50| 31 29 3b 0a 58 09 7d 0a | 58 09 67 65 74 5f 61 72 |1);.X.}.|X.get_ar|
|00002f60| 72 61 79 73 28 29 3b 09 | 09 2f 2a 20 73 68 6f 75 |rays();.|./* shou|
|00002f70| 6c 64 27 76 65 20 62 65 | 65 6e 20 61 20 6c 6f 6f |ld've be|en a loo|
|00002f80| 6b 2d 75 70 20 74 61 62 | 6c 65 2c 20 6f 6e 20 68 |k-up tab|le, on h|
|00002f90| 69 6e 64 73 69 67 68 74 | 20 2a 2f 0a 58 09 64 6f |indsight| */.X.do|
|00002fa0| 5f 69 74 28 72 65 5f 70 | 68 6f 6e 65 29 3b 09 2f |_it(re_p|hone);./|
|00002fb0| 2a 20 6d 61 6b 65 20 74 | 68 65 20 63 68 61 6e 67 |* make t|he chang|
|00002fc0| 65 73 20 2a 2f 0a 58 09 | 65 78 69 74 28 30 29 3b |es */.X.|exit(0);|
|00002fd0| 0a 58 09 2f 2a 20 4e 4f | 54 52 45 41 43 48 45 44 |.X./* NO|TREACHED|
|00002fe0| 20 2a 2f 0a 58 7d 0a 58 | 0a 58 76 6f 69 64 20 64 | */.X}.X|.Xvoid d|
|00002ff0| 6f 5f 69 74 28 72 65 29 | 0a 58 63 68 61 72 20 2a |o_it(re)|.Xchar *|
|00003000| 72 65 3b 09 09 09 09 09 | 09 09 2f 2a 20 6f 75 72 |re;.....|../* our|
|00003010| 20 63 6f 6d 70 69 6c 65 | 64 20 72 65 67 75 6c 61 | compile|d regula|
|00003020| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 20 2a 2f 0a |r expres|sion */.|
|00003030| 58 7b 0a 58 63 68 61 72 | 20 62 75 66 5b 42 55 46 |X{.Xchar| buf[BUF|
|00003040| 53 49 5a 20 2a 20 35 5d | 2c 20 61 72 65 61 5f 63 |SIZ * 5]|, area_c|
|00003050| 6f 64 65 5b 35 5d 2c 20 | 73 70 61 63 65 72 5b 33 |ode[5], |spacer[3|
|00003060| 5d 2c 20 6e 75 6d 62 65 | 72 5b 39 5d 2c 20 2a 70 |], numbe|r[9], *p|
|00003070| 74 72 2c 20 2a 73 74 6f | 70 3b 0a 58 72 65 67 69 |tr, *sto|p;.Xregi|
|00003080| 73 74 65 72 20 63 68 61 | 72 20 2a 73 74 61 72 74 |ster cha|r *start|
|00003090| 3b 0a 58 65 78 74 65 72 | 6e 20 63 68 61 72 20 2a |;.Xexter|n char *|
|000030a0| 5f 5f 6c 6f 63 31 3b 09 | 09 09 09 2f 2a 20 62 65 |__loc1;.|.../* be|
|000030b0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 6d 61 74 63 68 |ginning |of match|
|000030c0| 2c 20 69 66 20 61 6e 79 | 20 2a 2f 0a 58 09 70 74 |, if any| */.X.pt|
|000030d0| 72 20 3d 20 62 75 66 3b | 09 09 09 09 09 09 2f 2a |r = buf;|....../*|
|000030e0| 20 72 65 20 6d 61 74 63 | 68 65 73 20 6e 6f 6e 2d | re matc|hes non-|
|000030f0| 6e 75 6d 62 65 72 20 63 | 68 61 72 20 61 74 20 65 |number c|har at e|
|00003100| 6e 64 73 20 2a 2f 0a 58 | 09 2a 70 74 72 2b 2b 20 |nds */.X|.*ptr++ |
|00003110| 3d 20 27 20 27 3b 09 09 | 09 09 09 2f 2a 20 74 68 |= ' ';..|.../* th|
|00003120| 69 73 20 69 73 20 6b 6c | 75 64 67 65 20 74 6f 20 |is is kl|udge to |
|00003130| 6d 61 6b 65 20 74 68 65 | 6d 20 2a 2f 0a 58 09 77 |make the|m */.X.w|
|00003140| 68 69 6c 65 20 28 66 67 | 65 74 73 28 70 74 72 2c |hile (fg|ets(ptr,|
|00003150| 20 42 55 46 53 49 5a 20 | 2a 20 35 2c 20 73 74 64 | BUFSIZ |* 5, std|
|00003160| 69 6e 29 29 20 7b 0a 58 | 09 09 73 74 61 72 74 20 |in)) {.X|..start |
|00003170| 3d 20 62 75 66 3b 0a 58 | 09 09 77 68 69 6c 65 20 |= buf;.X|..while |
|00003180| 28 73 74 6f 70 20 3d 20 | 72 65 67 65 78 28 72 65 |(stop = |regex(re|
|00003190| 2c 20 73 74 61 72 74 2c | 20 61 72 65 61 5f 63 6f |, start,| area_co|
|000031a0| 64 65 2c 20 73 70 61 63 | 65 72 2c 20 6e 75 6d 62 |de, spac|er, numb|
|000031b0| 65 72 29 29 20 20 7b 0a | 58 09 09 09 69 66 20 28 |er)) {.|X...if (|
|000031c0| 73 74 61 72 74 20 3d 3d | 20 62 75 66 29 0a 58 09 |start ==| buf).X.|
|000031d0| 09 09 09 73 74 61 72 74 | 2b 2b 3b 0a 58 09 09 09 |...start|++;.X...|
|000031e0| 69 66 20 28 5f 5f 6c 6f | 63 31 20 3d 3d 20 62 75 |if (__lo|c1 == bu|
|000031f0| 66 29 20 7b 09 2f 2a 20 | 70 68 6f 6e 65 20 6e 75 |f) {./* |phone nu|
|00003200| 6d 62 65 72 20 61 74 20 | 73 74 61 72 74 20 6f 66 |mber at |start of|
|00003210| 20 6c 69 6e 65 20 2a 2f | 0a 58 09 09 09 09 73 74 | line */|.X....st|
|00003220| 61 72 74 5f 6f 66 5f 6c | 69 6e 65 20 3d 20 54 52 |art_of_l|ine = TR|
|00003230| 55 45 3b 09 2f 2a 20 73 | 6f 20 62 65 20 73 75 72 |UE;./* s|o be sur|
|00003240| 65 20 6e 6f 74 20 74 6f | 20 69 6e 63 6c 75 64 65 |e not to| include|
|00003250| 20 74 68 65 20 2a 2f 0a | 58 09 09 09 09 73 74 61 | the */.|X....sta|
|00003260| 72 74 20 3d 20 70 74 72 | 3b 09 09 2f 2a 20 6c 65 |rt = ptr|;../* le|
|00003270| 61 64 20 66 75 64 67 65 | 20 63 68 61 72 61 63 74 |ad fudge| charact|
|00003280| 65 72 20 2a 2f 0a 58 09 | 09 09 7d 20 65 6c 73 65 |er */.X.|..} else|
|00003290| 0a 58 09 09 09 09 73 74 | 61 72 74 5f 6f 66 5f 6c |.X....st|art_of_l|
|000032a0| 69 6e 65 20 3d 20 46 41 | 4c 53 45 3b 0a 58 09 09 |ine = FA|LSE;.X..|
|000032b0| 09 77 68 69 6c 65 20 28 | 73 74 61 72 74 20 3c 20 |.while (|start < |
|000032c0| 5f 5f 6c 6f 63 31 29 0a | 58 09 09 09 09 28 76 6f |__loc1).|X....(vo|
|000032d0| 69 64 29 70 75 74 63 68 | 61 72 28 2a 73 74 61 72 |id)putch|ar(*star|
|000032e0| 74 2b 2b 29 3b 0a 58 09 | 09 09 70 75 74 5f 6e 75 |t++);.X.|..put_nu|
|000032f0| 6d 62 65 72 28 61 72 65 | 61 5f 63 6f 64 65 2c 20 |mber(are|a_code, |
|00003300| 6e 75 6d 62 65 72 2c 20 | 73 70 61 63 65 72 29 3b |number, |spacer);|
|00003310| 0a 58 09 09 09 73 74 61 | 72 74 20 3d 20 2d 2d 73 |.X...sta|rt = --s|
|00003320| 74 6f 70 3b 09 09 09 2f | 2a 20 72 65 20 68 6f 6c |top;.../|* re hol|
|00003330| 64 73 20 6f 6e 65 20 65 | 78 74 72 61 20 63 68 61 |ds one e|xtra cha|
|00003340| 72 61 63 74 65 72 20 61 | 74 20 65 6e 64 20 2a 2f |racter a|t end */|
|00003350| 0a 58 09 09 7d 09 09 09 | 09 09 09 09 2f 2a 20 70 |.X..}...|..../* p|
|00003360| 72 69 6e 74 20 72 65 73 | 69 64 75 61 6c 20 73 74 |rint res|idual st|
|00003370| 72 69 6e 67 20 2a 2f 0a | 58 09 09 28 76 6f 69 64 |ring */.|X..(void|
|00003380| 29 70 72 69 6e 74 66 28 | 22 25 73 22 2c 20 28 73 |)printf(|"%s", (s|
|00003390| 74 61 72 74 20 3d 3d 20 | 62 75 66 29 20 3f 20 70 |tart == |buf) ? p|
|000033a0| 74 72 20 3a 20 73 74 61 | 72 74 29 3b 0a 58 09 7d |tr : sta|rt);.X.}|
|000033b0| 0a 58 7d 0a 58 0a 58 70 | 75 74 5f 6e 75 6d 62 65 |.X}.X.Xp|ut_numbe|
|000033c0| 72 28 61 63 2c 20 6e 75 | 6d 62 65 72 2c 20 73 70 |r(ac, nu|mber, sp|
|000033d0| 61 63 65 72 29 0a 58 63 | 68 61 72 20 2a 61 63 2c |acer).Xc|har *ac,|
|000033e0| 20 2a 6e 75 6d 62 65 72 | 2c 20 2a 73 70 61 63 65 | *number|, *space|
|000033f0| 72 3b 0a 58 7b 0a 58 69 | 6e 74 20 76 61 6c 3b 0a |r;.X{.Xi|nt val;.|
|00003400| 58 09 76 61 6c 20 3d 20 | 61 74 6f 69 28 6e 75 6d |X.val = |atoi(num|
|00003410| 62 65 72 29 3b 0a 58 09 | 69 66 20 28 21 2a 61 63 |ber);.X.|if (!*ac|
|00003420| 29 20 7b 09 09 09 09 09 | 09 09 09 09 09 2f 2a 20 |) {.....|...../* |
|00003430| 6e 6f 20 61 72 65 61 20 | 63 6f 64 65 20 6c 69 73 |no area |code lis|
|00003440| 74 65 64 20 2a 2f 0a 58 | 09 09 6d 61 6b 65 5f 73 |ted */.X|..make_s|
|00003450| 70 61 63 65 28 73 70 61 | 63 65 72 29 3b 0a 58 09 |pace(spa|cer);.X.|
|00003460| 09 69 66 20 28 62 73 65 | 61 72 63 68 28 28 63 68 |.if (bse|arch((ch|
|00003470| 61 72 20 2a 29 20 26 76 | 61 6c 2c 20 28 63 68 61 |ar *) &v|al, (cha|
|00003480| 72 20 2a 29 20 6f 74 68 | 65 72 78 5f 70 74 72 2d |r *) oth|erx_ptr-|
|00003490| 3e 61 5f 6c 69 73 74 2c | 0a 58 09 09 09 09 09 6f |>a_list,|.X.....o|
|000034a0| 74 68 65 72 78 5f 70 74 | 72 2d 3e 61 5f 63 6f 75 |therx_pt|r->a_cou|
|000034b0| 6e 74 2c 20 73 69 7a 65 | 6f 66 28 69 6e 74 20 2a |nt, size|of(int *|
|000034c0| 29 2c 20 69 6e 74 63 6d | 70 29 29 20 7b 0a 58 09 |), intcm|p)) {.X.|
|000034d0| 09 09 70 72 69 6e 74 5f | 69 74 28 6f 74 68 65 72 |..print_|it(other|
|000034e0| 78 5f 70 74 72 2d 3e 61 | 5f 6e 61 6d 65 2c 20 6e |x_ptr->a|_name, n|
|000034f0| 75 6d 62 65 72 2c 20 27 | 5c 30 27 29 3b 0a 58 09 |umber, '|\0');.X.|
|00003500| 09 7d 20 65 6c 73 65 20 | 69 66 20 28 64 6f 5f 62 |.} else |if (do_b|
|00003510| 6f 74 68 20 3d 3d 20 54 | 52 55 45 29 20 7b 09 09 |oth == T|RUE) {..|
|00003520| 09 09 2f 2a 20 69 6e 20 | 70 72 65 73 65 6e 74 20 |../* in |present |
|00003530| 65 78 63 68 61 6e 67 65 | 20 2a 2f 0a 58 09 09 09 |exchange| */.X...|
|00003540| 69 66 20 28 62 73 65 61 | 72 63 68 28 28 63 68 61 |if (bsea|rch((cha|
|00003550| 72 20 2a 29 20 26 76 61 | 6c 2c 20 28 63 68 61 72 |r *) &va|l, (char|
|00003560| 20 2a 29 20 70 72 65 73 | 65 6e 74 78 5f 70 74 72 | *) pres|entx_ptr|
|00003570| 2d 3e 61 5f 6c 69 73 74 | 2c 0a 58 09 09 09 09 09 |->a_list|,.X.....|
|00003580| 09 70 72 65 73 65 6e 74 | 78 5f 70 74 72 2d 3e 61 |.present|x_ptr->a|
|00003590| 5f 63 6f 75 6e 74 2c 20 | 73 69 7a 65 6f 66 28 69 |_count, |sizeof(i|
|000035a0| 6e 74 20 2a 29 2c 20 69 | 6e 74 63 6d 70 29 29 0a |nt *), i|ntcmp)).|
|000035b0| 58 09 09 09 09 70 72 69 | 6e 74 5f 69 74 28 70 72 |X....pri|nt_it(pr|
|000035c0| 65 73 65 6e 74 78 5f 70 | 74 72 2d 3e 61 5f 6e 61 |esentx_p|tr->a_na|
|000035d0| 6d 65 2c 20 6e 75 6d 62 | 65 72 2c 20 27 5c 30 27 |me, numb|er, '\0'|
|000035e0| 29 3b 0a 58 09 09 09 65 | 6c 73 65 0a 58 09 09 09 |);.X...e|lse.X...|
|000035f0| 09 70 72 69 6e 74 5f 69 | 74 28 22 3f 3f 3f 22 2c |.print_i|t("???",|
|00003600| 20 6e 75 6d 62 65 72 2c | 20 27 5c 30 27 29 3b 0a | number,| '\0');.|
|00003610| 58 09 09 7d 20 65 6c 73 | 65 20 09 09 09 09 09 09 |X..} els|e ......|
|00003620| 09 09 09 09 2f 2a 20 61 | 73 73 75 6d 65 20 6e 75 |..../* a|ssume nu|
|00003630| 6d 62 65 72 20 69 73 20 | 2a 2f 0a 58 09 09 09 28 |mber is |*/.X...(|
|00003640| 76 6f 69 64 29 70 72 69 | 6e 74 66 28 22 25 73 22 |void)pri|ntf("%s"|
|00003650| 2c 20 6e 75 6d 62 65 72 | 29 3b 09 09 09 09 2f 2a |, number|);..../*|
|00003660| 20 69 6e 20 63 75 72 72 | 65 6e 74 20 65 78 63 68 | in curr|ent exch|
|00003670| 61 6e 67 65 20 2a 2f 0a | 58 09 7d 20 65 6c 73 65 |ange */.|X.} else|
|00003680| 20 69 66 20 28 21 73 74 | 72 63 6d 70 28 61 63 20 | if (!st|rcmp(ac |
|00003690| 2b 20 31 2c 20 70 72 65 | 73 65 6e 74 78 5f 70 74 |+ 1, pre|sentx_pt|
|000036a0| 72 2d 3e 61 5f 6e 61 6d | 65 29 2f 2a 20 6d 61 74 |r->a_nam|e)/* mat|
|000036b0| 63 68 65 73 20 6f 6c 64 | 20 6f 72 20 6e 65 77 20 |ches old| or new |
|000036c0| 2a 2f 0a 58 09 09 09 09 | 7c 7c 20 21 73 74 72 63 |*/.X....||| !strc|
|000036d0| 6d 70 28 61 63 20 2b 20 | 31 2c 20 6f 74 68 65 72 |mp(ac + |1, other|
|000036e0| 78 5f 70 74 72 2d 3e 61 | 5f 6e 61 6d 65 29 29 20 |x_ptr->a|_name)) |
|000036f0| 7b 0a 58 09 09 69 66 20 | 28 62 73 65 61 72 63 68 |{.X..if |(bsearch|
|00003700| 28 28 63 68 61 72 20 2a | 29 20 26 76 61 6c 2c 20 |((char *|) &val, |
|00003710| 28 63 68 61 72 20 2a 29 | 20 70 72 65 73 65 6e 74 |(char *)| present|
|00003720| 78 5f 70 74 72 2d 3e 61 | 5f 6c 69 73 74 2c 0a 58 |x_ptr->a|_list,.X|
|00003730| 09 09 09 09 70 72 65 73 | 65 6e 74 78 5f 70 74 72 |....pres|entx_ptr|
|00003740| 2d 3e 61 5f 63 6f 75 6e | 74 2c 20 73 69 7a 65 6f |->a_coun|t, sizeo|
|00003750| 66 28 69 6e 74 20 2a 29 | 2c 20 69 6e 74 63 6d 70 |f(int *)|, intcmp|
|00003760| 29 29 0a 58 09 09 09 70 | 72 69 6e 74 5f 69 74 28 |)).X...p|rint_it(|
|00003770| 70 72 65 73 65 6e 74 78 | 5f 70 74 72 2d 3e 61 5f |presentx|_ptr->a_|
|00003780| 6e 61 6d 65 2c 20 6e 75 | 6d 62 65 72 2c 20 2a 61 |name, nu|mber, *a|
|00003790| 63 29 3b 0a 58 09 09 65 | 6c 73 65 20 69 66 20 28 |c);.X..e|lse if (|
|000037a0| 62 73 65 61 72 63 68 28 | 28 63 68 61 72 20 2a 29 |bsearch(|(char *)|
|000037b0| 20 26 76 61 6c 2c 20 28 | 63 68 61 72 20 2a 29 20 | &val, (|char *) |
|000037c0| 6f 74 68 65 72 78 5f 70 | 74 72 2d 3e 61 5f 6c 69 |otherx_p|tr->a_li|
|000037d0| 73 74 2c 0a 58 09 09 09 | 09 6f 74 68 65 72 78 5f |st,.X...|.otherx_|
|000037e0| 70 74 72 2d 3e 61 5f 63 | 6f 75 6e 74 2c 20 73 69 |ptr->a_c|ount, si|
|000037f0| 7a 65 6f 66 28 69 6e 74 | 20 2a 29 2c 20 69 6e 74 |zeof(int| *), int|
|00003800| 63 6d 70 29 29 0a 58 09 | 09 09 70 72 69 6e 74 5f |cmp)).X.|..print_|
|00003810| 69 74 28 6f 74 68 65 72 | 78 5f 70 74 72 2d 3e 61 |it(other|x_ptr->a|
|00003820| 5f 6e 61 6d 65 2c 20 6e | 75 6d 62 65 72 2c 20 2a |_name, n|umber, *|
|00003830| 61 63 29 3b 0a 58 09 09 | 65 6c 73 65 0a 58 09 09 |ac);.X..|else.X..|
|00003840| 09 70 72 69 6e 74 5f 69 | 74 28 22 3f 3f 3f 22 2c |.print_i|t("???",|
|00003850| 20 6e 75 6d 62 65 72 2c | 20 2a 61 63 29 3b 09 09 | number,| *ac);..|
|00003860| 2f 2a 20 61 20 77 72 6f | 6e 67 21 20 6e 75 6d 62 |/* a wro|ng! numb|
|00003870| 65 72 20 2a 2f 0a 58 09 | 7d 20 65 6c 73 65 20 09 |er */.X.|} else .|
|00003880| 09 09 09 09 09 09 09 09 | 09 2f 2a 20 64 69 66 66 |........|./* diff|
|00003890| 65 72 65 6e 74 20 61 72 | 65 61 20 63 6f 64 65 20 |erent ar|ea code |
|000038a0| 2a 2f 0a 58 09 09 70 72 | 69 6e 74 5f 69 74 28 61 |*/.X..pr|int_it(a|
|000038b0| 63 20 2b 20 31 2c 20 6e | 75 6d 62 65 72 2c 20 2a |c + 1, n|umber, *|
|000038c0| 61 63 29 3b 0a 58 7d 0a | 58 0a 58 76 6f 69 64 20 |ac);.X}.|X.Xvoid |
|000038d0| 70 72 69 6e 74 5f 69 74 | 28 73 31 2c 20 73 32 2c |print_it|(s1, s2,|
|000038e0| 20 63 29 0a 58 63 68 61 | 72 20 2a 73 31 2c 20 2a | c).Xcha|r *s1, *|
|000038f0| 73 32 2c 20 63 3b 0a 58 | 7b 0a 58 09 69 66 20 28 |s2, c;.X|{.X.if (|
|00003900| 63 20 26 26 20 73 74 61 | 72 74 5f 6f 66 5f 6c 69 |c && sta|rt_of_li|
|00003910| 6e 65 3d 3d 46 41 4c 53 | 45 20 26 26 20 63 20 21 |ne==FALS|E && c !|
|00003920| 3d 20 27 28 27 29 09 2f | 2a 20 6e 6f 20 65 78 74 |= '(')./|* no ext|
|00003930| 72 61 20 70 61 72 65 6e | 73 20 2a 2f 0a 58 09 09 |ra paren|s */.X..|
|00003940| 28 76 6f 69 64 29 70 75 | 74 63 68 61 72 28 63 29 |(void)pu|tchar(c)|
|00003950| 3b 0a 58 09 28 76 6f 69 | 64 29 70 72 69 6e 74 66 |;.X.(voi|d)printf|
|00003960| 28 70 61 72 65 6e 73 20 | 3d 3d 20 54 52 55 45 20 |(parens |== TRUE |
|00003970| 3f 20 22 28 25 73 29 20 | 25 73 22 20 3a 20 22 25 |? "(%s) |%s" : "%|
|00003980| 73 2d 25 73 22 2c 20 73 | 31 2c 20 73 32 29 3b 0a |s-%s", s|1, s2);.|
|00003990| 58 7d 0a 58 0a 58 69 6e | 74 63 6d 70 28 6f 6e 65 |X}.X.Xin|tcmp(one|
|000039a0| 2c 20 74 77 6f 29 0a 58 | 69 6e 74 20 2a 6f 6e 65 |, two).X|int *one|
|000039b0| 2c 20 2a 74 77 6f 3b 0a | 58 7b 0a 58 09 72 65 74 |, *two;.|X{.X.ret|
|000039c0| 75 72 6e 28 2a 6f 6e 65 | 20 2d 20 2a 74 77 6f 29 |urn(*one| - *two)|
|000039d0| 3b 0a 58 7d 0a 58 0a 58 | 23 69 66 64 65 66 20 43 |;.X}.X.X|#ifdef C|
|000039e0| 48 49 43 41 47 4f 0a 58 | 76 6f 69 64 20 67 65 74 |HICAGO.X|void get|
|000039f0| 5f 61 72 72 61 79 73 28 | 29 20 0a 58 7b 0a 58 41 |_arrays(|) .X{.XA|
|00003a00| 52 52 41 59 20 2a 61 70 | 74 72 3b 0a 58 69 6e 74 |RRAY *ap|tr;.Xint|
|00003a10| 20 69 2c 20 2a 69 70 74 | 72 3b 0a 58 72 65 67 69 | i, *ipt|r;.Xregi|
|00003a20| 73 74 65 72 20 69 6e 74 | 20 6a 3b 0a 58 63 68 61 |ster int| j;.Xcha|
|00003a30| 72 20 62 75 66 5b 31 30 | 5d 3b 0a 58 09 66 6f 72 |r buf[10|];.X.for|
|00003a40| 20 28 6a 20 3d 20 69 20 | 3d 20 30 2c 20 69 70 74 | (j = i |= 0, ipt|
|00003a50| 72 20 3d 20 6f 6c 64 5f | 61 72 79 2c 20 61 70 74 |r = old_|ary, apt|
|00003a60| 72 20 3d 20 26 6f 6c 64 | 78 3b 20 69 20 3c 20 32 |r = &old|x; i < 2|
|00003a70| 3b 20 0a 58 09 09 09 09 | 09 69 70 74 72 20 3d 20 |; .X....|.iptr = |
|00003a80| 6e 65 77 5f 61 72 79 2c | 20 61 70 74 72 20 3d 20 |new_ary,| aptr = |
|00003a90| 26 6e 65 77 78 2c 20 6a | 20 3d 20 30 2c 20 69 2b |&newx, j| = 0, i+|
|00003aa0| 2b 29 20 7b 0a 58 09 09 | 28 76 6f 69 64 29 73 70 |+) {.X..|(void)sp|
|00003ab0| 72 69 6e 74 66 28 62 75 | 66 2c 20 22 25 30 33 64 |rintf(bu|f, "%03d|
|00003ac0| 22 2c 20 2a 69 70 74 72 | 29 3b 0a 58 09 09 61 70 |", *iptr|);.X..ap|
|00003ad0| 74 72 2d 3e 61 5f 6e 61 | 6d 65 20 3d 20 53 74 72 |tr->a_na|me = Str|
|00003ae0| 64 75 70 28 62 75 66 29 | 3b 0a 58 09 09 77 68 69 |dup(buf)|;.X..whi|
|00003af0| 6c 65 20 28 61 70 74 72 | 2d 3e 61 5f 6c 69 73 74 |le (aptr|->a_list|
|00003b00| 5b 6a 5d 20 3d 20 69 70 | 74 72 5b 6a 20 2b 20 31 |[j] = ip|tr[j + 1|
|00003b10| 5d 29 0a 58 09 09 09 6a | 2b 2b 3b 0a 58 09 09 61 |]).X...j|++;.X..a|
|00003b20| 70 74 72 2d 3e 61 5f 63 | 6f 75 6e 74 20 3d 20 6a |ptr->a_c|ount = j|
|00003b30| 3b 0a 58 09 09 71 73 6f | 72 74 28 28 63 68 61 72 |;.X..qso|rt((char|
|00003b40| 20 2a 29 20 61 70 74 72 | 2d 3e 61 5f 6c 69 73 74 | *) aptr|->a_list|
|00003b50| 2c 20 6a 2c 20 73 69 7a | 65 6f 66 28 69 6e 74 20 |, j, siz|eof(int |
|00003b60| 2a 29 2c 20 69 6e 74 63 | 6d 70 29 3b 0a 58 09 7d |*), intc|mp);.X.}|
|00003b70| 0a 58 7d 0a 58 23 65 6c | 73 65 0a 58 76 6f 69 64 |.X}.X#el|se.Xvoid|
|00003b80| 20 67 65 74 5f 61 72 72 | 61 79 73 28 29 20 0a 58 | get_arr|ays() .X|
|00003b90| 7b 0a 58 46 49 4c 45 20 | 2a 66 70 3b 0a 58 63 68 |{.XFILE |*fp;.Xch|
|00003ba0| 61 72 20 62 75 66 5b 42 | 55 46 53 49 5a 5d 2c 20 |ar buf[B|UFSIZ], |
|00003bb0| 2a 70 74 72 3b 0a 58 41 | 52 52 41 59 20 2a 61 70 |*ptr;.XA|RRAY *ap|
|00003bc0| 74 72 3b 0a 58 69 6e 74 | 20 69 3b 0a 58 09 66 6f |tr;.Xint| i;.X.fo|
|00003bd0| 72 20 28 69 20 3d 20 30 | 2c 20 61 70 74 72 20 3d |r (i = 0|, aptr =|
|00003be0| 20 26 6f 6c 64 78 3b 20 | 69 20 3c 20 32 3b 20 61 | &oldx; |i < 2; a|
|00003bf0| 70 74 72 20 3d 20 26 6e | 65 77 78 2c 20 69 2b 2b |ptr = &n|ewx, i++|
|00003c00| 29 20 7b 0a 58 09 09 61 | 70 74 72 2d 3e 61 5f 63 |) {.X..a|ptr->a_c|
|00003c10| 6f 75 6e 74 20 3d 20 2d | 31 3b 0a 58 09 09 69 66 |ount = -|1;.X..if|
|00003c20| 20 28 21 28 66 70 20 3d | 20 66 6f 70 65 6e 28 61 | (!(fp =| fopen(a|
|00003c30| 70 74 72 2d 3e 61 5f 66 | 69 6c 65 2c 20 22 72 22 |ptr->a_f|ile, "r"|
|00003c40| 29 29 29 20 7b 0a 58 09 | 09 09 28 76 6f 69 64 29 |))) {.X.|..(void)|
|00003c50| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00003c60| 22 55 6e 61 62 6c 65 20 | 74 6f 20 6f 70 65 6e 20 |"Unable |to open |
|00003c70| 6e 75 6d 62 65 72 73 20 | 66 69 6c 65 20 25 73 5c |numbers |file %s\|
|00003c80| 6e 22 2c 20 0a 58 09 09 | 09 09 61 70 74 72 2d 3e |n", .X..|..aptr->|
|00003c90| 61 5f 66 69 6c 65 29 3b | 0a 58 09 09 09 65 78 69 |a_file);|.X...exi|
|00003ca0| 74 28 31 29 3b 0a 58 09 | 09 7d 0a 58 09 09 77 68 |t(1);.X.|.}.X..wh|
|00003cb0| 69 6c 65 20 28 66 67 65 | 74 73 28 62 75 66 2c 20 |ile (fge|ts(buf, |
|00003cc0| 42 55 46 53 49 5a 2c 20 | 66 70 29 29 20 7b 0a 58 |BUFSIZ, |fp)) {.X|
|00003cd0| 09 09 09 69 66 20 28 69 | 73 64 69 67 69 74 28 2a |...if (i|sdigit(*|
|00003ce0| 62 75 66 29 29 20 7b 0a | 58 09 09 09 09 69 66 20 |buf)) {.|X....if |
|00003cf0| 28 2b 2b 61 70 74 72 2d | 3e 61 5f 63 6f 75 6e 74 |(++aptr-|>a_count|
|00003d00| 20 3d 3d 20 30 29 20 7b | 09 09 2f 2a 20 67 65 74 | == 0) {|../* get|
|00003d10| 20 74 68 65 20 6f 6c 64 | 2f 6e 65 77 20 65 78 63 | the old|/new exc|
|00003d20| 68 61 6e 67 65 20 2a 2f | 0a 58 09 09 09 09 09 66 |hange */|.X.....f|
|00003d30| 6f 72 20 28 70 74 72 20 | 3d 20 62 75 66 3b 20 69 |or (ptr |= buf; i|
|00003d40| 73 73 70 61 63 65 28 2a | 70 74 72 2b 2b 29 3b 20 |sspace(*|ptr++); |
|00003d50| 29 0a 58 09 09 09 09 09 | 09 3b 09 09 09 09 09 09 |).X.....|.;......|
|00003d60| 2f 2a 20 6d 61 6b 65 20 | 61 20 63 6c 65 61 6e 20 |/* make |a clean |
|00003d70| 73 74 72 69 6e 67 20 2a | 2f 0a 58 09 09 09 09 09 |string *|/.X.....|
|00003d80| 73 74 72 69 70 28 2d 2d | 70 74 72 29 3b 0a 58 09 |strip(--|ptr);.X.|
|00003d90| 09 09 09 09 61 70 74 72 | 2d 3e 61 5f 6e 61 6d 65 |....aptr|->a_name|
|00003da0| 20 3d 20 53 74 72 64 75 | 70 28 70 74 72 29 3b 0a | = Strdu|p(ptr);.|
|00003db0| 58 09 09 09 09 7d 20 65 | 6c 73 65 20 69 66 20 28 |X....} e|lse if (|
|00003dc0| 28 61 70 74 72 2d 3e 61 | 5f 6c 69 73 74 5b 61 70 |(aptr->a|_list[ap|
|00003dd0| 74 72 2d 3e 61 5f 63 6f | 75 6e 74 20 2d 20 31 5d |tr->a_co|unt - 1]|
|00003de0| 20 3d 20 61 74 6f 69 28 | 62 75 66 29 29 20 3c 20 | = atoi(|buf)) < |
|00003df0| 31 30 30 20 0a 58 09 09 | 09 09 09 09 09 09 7c 7c |100 .X..|......|||
|00003e00| 20 61 70 74 72 2d 3e 61 | 5f 6c 69 73 74 5b 61 70 | aptr->a|_list[ap|
|00003e10| 74 72 2d 3e 61 5f 63 6f | 75 6e 74 5d 20 3e 20 39 |tr->a_co|unt] > 9|
|00003e20| 39 39 29 20 7b 0a 58 09 | 09 09 09 09 28 76 6f 69 |99) {.X.|....(voi|
|00003e30| 64 29 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |d)fprint|f(stderr|
|00003e40| 2c 20 22 42 61 64 20 6e | 75 6d 62 65 72 73 20 69 |, "Bad n|umbers i|
|00003e50| 6e 20 66 69 6c 65 20 25 | 73 5c 6e 22 2c 20 0a 58 |n file %|s\n", .X|
|00003e60| 09 09 09 09 09 09 09 61 | 70 74 72 2d 3e 61 5f 66 |.......a|ptr->a_f|
|00003e70| 69 6c 65 29 3b 0a 58 09 | 09 09 09 09 65 78 69 74 |ile);.X.|....exit|
|00003e80| 28 31 29 3b 0a 58 09 09 | 09 09 7d 0a 58 09 09 09 |(1);.X..|..}.X...|
|00003e90| 09 61 70 74 72 2d 3e 61 | 5f 6c 69 73 74 5b 61 70 |.aptr->a|_list[ap|
|00003ea0| 74 72 2d 3e 61 5f 63 6f | 75 6e 74 5d 20 3d 20 30 |tr->a_co|unt] = 0|
|00003eb0| 3b 0a 58 09 09 09 7d 0a | 58 09 09 7d 0a 58 09 09 |;.X...}.|X..}.X..|
|00003ec0| 71 73 6f 72 74 28 28 63 | 68 61 72 20 2a 29 20 61 |qsort((c|har *) a|
|00003ed0| 70 74 72 2d 3e 61 5f 6c | 69 73 74 2c 20 28 75 6e |ptr->a_l|ist, (un|
|00003ee0| 73 69 67 6e 65 64 29 20 | 61 70 74 72 2d 3e 61 5f |signed) |aptr->a_|
|00003ef0| 63 6f 75 6e 74 2c 20 0a | 58 09 09 09 09 09 09 73 |count, .|X......s|
|00003f00| 69 7a 65 6f 66 28 69 6e | 74 20 2a 29 2c 20 69 6e |izeof(in|t *), in|
|00003f10| 74 63 6d 70 29 3b 0a 58 | 09 7d 0a 58 7d 0a 58 23 |tcmp);.X|.}.X}.X#|
|00003f20| 65 6e 64 69 66 0a 58 0a | 58 6f 75 74 28 29 20 0a |endif.X.|Xout() .|
|00003f30| 58 7b 0a 58 09 28 76 6f | 69 64 29 66 70 72 69 6e |X{.X.(vo|id)fprin|
|00003f40| 74 66 28 73 74 64 65 72 | 72 2c 20 0a 58 09 09 22 |tf(stder|r, .X.."|
|00003f50| 55 73 61 67 65 20 25 73 | 3a 20 5b 2d 62 64 5d 20 |Usage %s|: [-bd] |
|00003f60| 5b 2d 6f 20 2d 6e 5d 20 | 5b 69 6e 70 75 74 20 66 |[-o -n] |[input f|
|00003f70| 69 6c 65 20 5b 6f 75 74 | 70 75 74 20 66 69 6c 65 |ile [out|put file|
|00003f80| 5d 20 5d 5c 6e 22 2c 20 | 70 72 6f 67 6e 61 6d 65 |] ]\n", |progname|
|00003f90| 29 3b 0a 58 09 65 78 69 | 74 28 31 29 3b 0a 58 7d |);.X.exi|t(1);.X}|
|00003fa0| 0a 58 0a 58 76 6f 69 64 | 20 73 74 72 69 70 28 73 |.X.Xvoid| strip(s|
|00003fb0| 29 0a 58 63 68 61 72 20 | 2a 73 3b 0a 58 7b 0a 58 |).Xchar |*s;.X{.X|
|00003fc0| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 70 |register| char *p|
|00003fd0| 74 72 20 3d 20 73 20 2b | 20 73 74 72 6c 65 6e 28 |tr = s +| strlen(|
|00003fe0| 73 29 3b 0a 58 09 77 68 | 69 6c 65 20 28 2d 2d 70 |s);.X.wh|ile (--p|
|00003ff0| 74 72 20 3e 3d 20 73 20 | 26 26 20 69 73 73 70 61 |tr >= s |&& isspa|
|00004000| 63 65 28 2a 70 74 72 29 | 29 0a 58 09 09 3b 0a 58 |ce(*ptr)|).X..;.X|
|00004010| 09 2a 2b 2b 70 74 72 20 | 3d 20 27 5c 30 27 3b 0a |.*++ptr |= '\0';.|
|00004020| 58 7d 0a 58 0a 58 76 6f | 69 64 20 6d 61 6b 65 5f |X}.X.Xvo|id make_|
|00004030| 73 70 61 63 65 28 73 29 | 0a 58 63 68 61 72 20 2a |space(s)|.Xchar *|
|00004040| 73 3b 0a 58 7b 0a 58 09 | 69 66 20 28 2a 73 20 26 |s;.X{.X.|if (*s &|
|00004050| 26 20 73 74 61 72 74 5f | 6f 66 5f 6c 69 6e 65 20 |& start_|of_line |
|00004060| 3d 3d 20 54 52 55 45 29 | 09 2f 2a 20 72 65 6d 65 |== TRUE)|./* reme|
|00004070| 6d 62 65 72 20 74 68 65 | 20 6b 6c 75 64 67 65 20 |mber the| kludge |
|00004080| 2a 2f 0a 58 09 09 73 2b | 2b 3b 0a 58 09 77 68 69 |*/.X..s+|+;.X.whi|
|00004090| 6c 65 20 28 2a 73 29 20 | 7b 0a 58 09 09 69 66 20 |le (*s) |{.X..if |
|000040a0| 28 2a 73 20 21 3d 20 27 | 28 27 29 0a 58 09 09 09 |(*s != '|(').X...|
|000040b0| 28 76 6f 69 64 29 70 75 | 74 63 68 61 72 28 2a 73 |(void)pu|tchar(*s|
|000040c0| 29 3b 0a 58 09 09 73 2b | 2b 3b 0a 58 09 7d 0a 58 |);.X..s+|+;.X.}.X|
|000040d0| 7d 0a 58 0a 58 2f 2a 0a | 58 20 2a 20 73 6f 6d 65 |}.X.X/*.|X * some|
|000040e0| 20 73 79 73 74 65 6d 73 | 20 64 6f 6e 27 74 20 68 | systems| don't h|
|000040f0| 61 76 65 20 74 68 69 73 | 2c 20 6c 69 6b 65 20 61 |ave this|, like a|
|00004100| 6e 20 41 54 26 54 20 55 | 4e 49 58 50 43 2c 20 73 |n AT&T U|NIXPC, s|
|00004110| 6f 2e 2e 2e 0a 58 20 2a | 2f 0a 58 63 68 61 72 20 |o....X *|/.Xchar |
|00004120| 2a 53 74 72 64 75 70 28 | 73 31 29 0a 58 63 68 61 |*Strdup(|s1).Xcha|
|00004130| 72 20 2a 73 31 3b 0a 58 | 7b 0a 58 63 68 61 72 20 |r *s1;.X|{.Xchar |
|00004140| 2a 73 32 2c 20 2a 70 74 | 72 2c 20 2a 6d 61 6c 6c |*s2, *pt|r, *mall|
|00004150| 6f 63 28 29 3b 0a 58 20 | 20 20 20 20 20 20 20 69 |oc();.X | i|
|00004160| 66 20 28 21 73 31 29 0a | 58 20 20 20 20 20 20 20 |f (!s1).|X |
|00004170| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 28 | | return(|
|00004180| 43 4e 55 4c 4c 29 3b 0a | 58 20 20 20 20 20 20 20 |CNULL);.|X |
|00004190| 20 69 66 20 28 70 74 72 | 20 3d 20 73 32 20 3d 20 | if (ptr| = s2 = |
|000041a0| 6d 61 6c 6c 6f 63 28 28 | 75 6e 73 69 67 6e 65 64 |malloc((|unsigned|
|000041b0| 29 20 73 74 72 6c 65 6e | 28 73 31 29 20 2b 20 31 |) strlen|(s1) + 1|
|000041c0| 29 29 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |)).X | |
|000041d0| 20 20 20 20 77 68 69 6c | 65 20 28 2a 73 32 2b 2b | whil|e (*s2++|
|000041e0| 20 3d 20 2a 73 31 2b 2b | 29 0a 58 20 20 20 20 20 | = *s1++|).X |
|000041f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004200| 20 20 20 3b 0a 58 20 20 | 20 20 20 20 20 20 72 65 | ;.X | re|
|00004210| 74 75 72 6e 28 70 74 72 | 29 3b 0a 58 7d 0a 58 0a |turn(ptr|);.X}.X.|
|00004220| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00004230| 65 73 74 20 31 32 34 31 | 38 20 2d 6e 65 20 60 77 |est 1241|8 -ne `w|
|00004240| 63 20 2d 63 20 3c 27 78 | 63 68 67 2e 63 27 60 3b |c -c <'x|chg.c'`;|
|00004250| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00004260| 68 61 72 3a 20 5c 22 27 | 78 63 68 67 2e 63 27 5c |har: \"'|xchg.c'\|
|00004270| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00004280| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00004290| 20 65 6e 64 20 6f 66 20 | 27 78 63 68 67 2e 63 27 | end of |'xchg.c'|
|000042a0| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |.fi.echo| shar: E|
|000042b0| 6e 64 20 6f 66 20 73 68 | 65 6c 6c 20 61 72 63 68 |nd of sh|ell arch|
|000042c0| 69 76 65 2e 0a 65 78 69 | 74 20 30 0a 0a 0a |ive..exi|t 0... |
+--------+-------------------------+-------------------------+--------+--------+