home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / pc / crypto / texto.tar < prev    next >
Tape Archive  |  2003-06-11  |  50.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive default
99% file POSIX tar archive, file Makefile, mode 000664 , uid 002126 , gid 000024 , size 00000001121 , seconds 05724673631, user maher, group user default
98% file data default
62% TrID TAR - Tape ARchive (POSIX) default
37% TrID TAR - Tape ARchive (file) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype POSIX tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 61 6b 65 66 69 6c 65 | 00 00 00 00 00 00 00 00 |Makefile|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 32 31 |....0006|64 .0021|
|00000070| 32 36 20 00 30 30 30 30 | 32 34 20 00 30 30 30 30 |26 .0000|24 .0000|
|00000080| 30 30 30 31 31 32 31 20 | 30 35 37 32 34 36 37 33 |0001121 |05724673|
|00000090| 36 33 31 20 30 31 31 34 | 33 33 00 20 30 00 00 00 |631 0114|33. 0...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 00 30 | 30 6d 61 68 65 72 00 00 |.ustar.0|0maher..|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 00 00 00 |........|.user...|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 43 43 20 3d 20 67 63 63 | 20 0a 0a 23 20 55 6e 63 |CC = gcc| ..# Unc|
|00000210| 6f 6d 6d 65 6e 74 20 74 | 68 69 73 20 6f 6e 20 61 |omment t|his on a|
|00000220| 20 73 6f 6c 61 72 69 73 | 20 6d 61 63 68 69 6e 65 | solaris| machine|
|00000230| 2c 20 6f 72 20 61 6e 79 | 20 6f 74 68 65 72 20 6d |, or any| other m|
|00000240| 61 63 68 69 6e 65 20 77 | 69 74 68 20 75 75 65 6e |achine w|ith uuen|
|00000250| 63 6f 64 65 0a 23 20 74 | 68 61 74 20 75 73 65 73 |code.# t|hat uses|
|00000260| 20 74 68 65 20 73 70 61 | 63 65 20 63 68 61 72 61 | the spa|ce chara|
|00000270| 63 74 65 72 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |cter ins|tead of |
|00000280| 74 68 65 20 60 20 63 68 | 61 72 61 63 74 65 72 20 |the ` ch|aracter |
|00000290| 0a 23 0a 0a 23 20 44 45 | 46 49 4e 45 53 20 3d 20 |.#..# DE|FINES = |
|000002a0| 2d 44 55 55 5f 53 50 41 | 43 45 0a 0a 61 6c 6c 3a |-DUU_SPA|CE..all:|
|000002b0| 09 74 65 78 74 6f 0a 0a | 73 67 69 3a 0a 09 24 28 |.texto..|sgi:..$(|
|000002c0| 4d 41 4b 45 29 20 61 6c | 6c 20 43 43 3d 22 63 63 |MAKE) al|l CC="cc|
|000002d0| 20 2d 63 63 6b 72 22 0a | 0a 6c 69 6e 75 78 3a 20 | -cckr".|.linux: |
|000002e0| 0a 09 24 28 4d 41 4b 45 | 29 20 61 6c 6c 20 43 43 |..$(MAKE|) all CC|
|000002f0| 3d 22 67 63 63 22 0a 0a | 74 65 78 74 6f 3a 09 6d |="gcc"..|texto:.m|
|00000300| 61 69 6e 2e 6f 20 69 6e | 69 74 5f 77 6f 72 64 73 |ain.o in|it_words|
|00000310| 2e 6f 20 6f 68 74 2e 6f | 0a 09 24 28 43 43 29 20 |.o oht.o|..$(CC) |
|00000320| 24 28 44 45 46 49 4e 45 | 53 29 20 2d 6f 20 74 65 |$(DEFINE|S) -o te|
|00000330| 78 74 6f 20 6d 61 69 6e | 2e 6f 20 69 6e 69 74 5f |xto main|.o init_|
|00000340| 77 6f 72 64 73 2e 6f 20 | 6f 68 74 2e 6f 0a 0a 6d |words.o |oht.o..m|
|00000350| 61 69 6e 2e 6f 3a 09 6d | 61 69 6e 2e 63 20 74 65 |ain.o:.m|ain.c te|
|00000360| 78 74 6f 2e 68 0a 09 24 | 28 43 43 29 20 24 28 44 |xto.h..$|(CC) $(D|
|00000370| 45 46 49 4e 45 53 29 20 | 2d 63 20 6d 61 69 6e 2e |EFINES) |-c main.|
|00000380| 63 0a 0a 69 6e 69 74 5f | 77 6f 72 64 73 2e 6f 3a |c..init_|words.o:|
|00000390| 09 69 6e 69 74 5f 77 6f | 72 64 73 2e 63 20 74 65 |.init_wo|rds.c te|
|000003a0| 78 74 6f 2e 68 0a 09 24 | 28 43 43 29 20 24 28 44 |xto.h..$|(CC) $(D|
|000003b0| 45 46 49 4e 45 53 29 20 | 2d 63 20 69 6e 69 74 5f |EFINES) |-c init_|
|000003c0| 77 6f 72 64 73 2e 63 0a | 0a 6f 68 74 2e 6f 3a 09 |words.c.|.oht.o:.|
|000003d0| 6f 68 74 2e 63 09 6f 68 | 74 2e 68 0a 09 24 28 43 |oht.c.oh|t.h..$(C|
|000003e0| 43 29 20 24 28 44 45 46 | 49 4e 45 53 29 20 2d 63 |C) $(DEF|INES) -c|
|000003f0| 20 6f 68 74 2e 63 0a 0a | 63 6c 65 61 6e 3a 0a 09 | oht.c..|clean:..|
|00000400| 72 6d 20 2d 66 20 63 6f | 72 65 20 74 65 78 74 6f |rm -f co|re texto|
|00000410| 20 2a 2e 6f 20 0a 0a 64 | 69 73 74 3a 0a 09 24 28 | *.o ..d|ist:..$(|
|00000420| 4d 41 4b 45 29 20 63 6c | 65 61 6e 3b 20 74 61 72 |MAKE) cl|ean; tar|
|00000430| 20 63 76 66 20 74 65 78 | 74 6f 2e 74 61 72 20 2a | cvf tex|to.tar *|
|00000440| 3b 20 67 7a 69 70 20 74 | 65 78 74 6f 2e 74 61 72 |; gzip t|exto.tar|
|00000450| 0a 6f 64 65 0a 23 20 74 | 68 61 74 20 75 73 65 73 |.ode.# t|hat uses|
|00000460| 20 74 68 65 20 73 70 61 | 63 65 20 63 68 61 72 61 | the spa|ce chara|
|00000470| 63 74 65 72 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |cter ins|tead of |
|00000480| 74 68 65 20 60 20 63 68 | 61 72 61 63 74 65 72 20 |the ` ch|aracter |
|00000490| 0a 23 0a 0a 23 20 44 45 | 46 49 4e 45 53 20 3d 20 |.#..# DE|FINES = |
|000004a0| 2d 44 55 55 5f 53 50 41 | 43 45 0a 0a 61 6c 6c 3a |-DUU_SPA|CE..all:|
|000004b0| 09 74 65 78 74 6f 0a 0a | 73 67 69 3a 0a 09 24 28 |.texto..|sgi:..$(|
|000004c0| 4d 41 4b 45 29 20 61 6c | 6c 20 43 43 3d 22 63 63 |MAKE) al|l CC="cc|
|000004d0| 20 2d 63 63 6b 72 22 0a | 0a 6c 69 6e 75 78 3a 20 | -cckr".|.linux: |
|000004e0| 0a 09 24 28 4d 41 4b 45 | 29 20 61 6c 6c 20 43 43 |..$(MAKE|) all CC|
|000004f0| 3d 22 67 63 63 22 0a 0a | 74 65 78 74 6f 3a 09 6d |="gcc"..|texto:.m|
|00000500| 61 69 6e 2e 6f 20 69 6e | 69 74 5f 77 6f 72 64 73 |ain.o in|it_words|
|00000510| 2e 6f 20 6f 68 74 2e 6f | 0a 09 24 28 43 43 29 20 |.o oht.o|..$(CC) |
|00000520| 24 28 44 45 46 49 4e 45 | 53 29 20 2d 6f 20 74 65 |$(DEFINE|S) -o te|
|00000530| 78 74 6f 20 6d 61 69 6e | 2e 6f 20 69 6e 69 74 5f |xto main|.o init_|
|00000540| 77 6f 72 64 73 2e 6f 20 | 6f 68 74 2e 6f 0a 0a 6d |words.o |oht.o..m|
|00000550| 61 69 6e 2e 6f 3a 09 6d | 61 69 6e 2e 63 20 74 65 |ain.o:.m|ain.c te|
|00000560| 78 74 6f 2e 68 0a 09 24 | 28 43 43 29 20 24 28 44 |xto.h..$|(CC) $(D|
|00000570| 45 46 49 4e 45 53 29 20 | 2d 63 20 6d 61 69 6e 2e |EFINES) |-c main.|
|00000580| 63 0a 0a 69 6e 69 74 5f | 77 6f 72 64 73 2e 6f 3a |c..init_|words.o:|
|00000590| 09 69 6e 69 74 5f 77 6f | 72 64 73 2e 63 20 74 65 |.init_wo|rds.c te|
|000005a0| 78 74 6f 2e 68 0a 09 24 | 28 43 43 29 20 24 28 44 |xto.h..$|(CC) $(D|
|000005b0| 45 46 49 4e 45 53 29 20 | 2d 63 20 69 6e 69 74 5f |EFINES) |-c init_|
|000005c0| 77 6f 72 64 73 2e 63 0a | 0a 6f 68 74 2e 6f 3a 09 |words.c.|.oht.o:.|
|000005d0| 6f 68 74 2e 63 09 6f 68 | 74 2e 68 0a 09 24 28 43 |oht.c.oh|t.h..$(C|
|000005e0| 43 29 20 24 28 44 45 46 | 49 4e 45 53 29 20 2d 63 |C) $(DEF|INES) -c|
|000005f0| 20 6f 68 74 2e 63 0a 0a | 63 6c 65 61 6e 3a 0a 09 | oht.c..|clean:..|
|00000600| 52 45 41 44 4d 45 00 00 | 00 00 00 00 00 00 00 00 |README..|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 32 31 |....0006|64 .0021|
|00000670| 32 36 20 00 30 30 30 30 | 32 34 20 00 30 30 30 30 |26 .0000|24 .0000|
|00000680| 30 30 31 35 35 32 35 20 | 30 35 37 32 34 36 37 35 |0015525 |05724675|
|00000690| 37 35 30 20 30 31 30 36 | 37 34 00 20 30 00 00 00 |750 0106|74. 0...|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 75 73 74 61 72 00 30 | 30 6d 61 68 65 72 00 00 |.ustar.0|0maher..|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 00 00 00 |........|.user...|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000820| 2d 2d 2d 2d 0a 20 20 20 | 54 45 58 54 4f 20 2d 20 |----. |TEXTO - |
|00000830| 54 65 78 74 20 73 74 65 | 67 61 6e 6f 67 72 61 70 |Text ste|ganograp|
|00000840| 68 79 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |hy.-----|--------|
|00000850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000860| 2d 2d 2d 2d 2d 2d 2d 0a | 0a 20 20 20 54 65 78 74 |-------.|. Text|
|00000870| 6f 20 69 73 20 61 20 72 | 75 64 69 6d 65 6e 74 61 |o is a r|udimenta|
|00000880| 72 79 20 74 65 78 74 20 | 73 74 65 67 61 6e 6f 67 |ry text |steganog|
|00000890| 72 61 70 68 79 20 70 72 | 6f 67 72 61 6d 20 77 68 |raphy pr|ogram wh|
|000008a0| 69 63 68 20 74 72 61 6e | 73 66 6f 72 6d 73 0a 75 |ich tran|sforms.u|
|000008b0| 75 65 6e 63 6f 64 65 64 | 20 6f 72 20 70 67 70 20 |uencoded| or pgp |
|000008c0| 61 73 63 69 69 2d 61 72 | 6d 6f 75 72 65 64 20 61 |ascii-ar|moured a|
|000008d0| 73 63 69 69 20 64 61 74 | 61 20 69 6e 74 6f 20 45 |scii dat|a into E|
|000008e0| 6e 67 6c 69 73 68 20 73 | 65 6e 74 65 6e 63 65 73 |nglish s|entences|
|000008f0| 2e 0a 0a 20 20 20 54 68 | 69 73 20 70 72 6f 67 72 |... Th|is progr|
|00000900| 61 6d 20 77 61 73 20 77 | 72 69 74 74 65 6e 20 74 |am was w|ritten t|
|00000910| 6f 20 66 61 63 69 6c 69 | 74 61 74 65 20 74 68 65 |o facili|tate the|
|00000920| 20 65 78 63 68 61 6e 67 | 65 20 6f 66 20 62 69 6e | exchang|e of bin|
|00000930| 61 72 79 20 0a 64 61 74 | 61 2c 20 65 73 70 65 63 |ary .dat|a, espec|
|00000940| 69 61 6c 6c 79 20 65 6e | 63 72 79 70 74 65 64 20 |ially en|crypted |
|00000950| 64 61 74 61 2e 20 20 57 | 68 79 20 69 73 20 74 68 |data. W|hy is th|
|00000960| 69 73 20 6e 65 63 65 73 | 73 61 72 79 3f 20 20 50 |is neces|sary? P|
|00000970| 65 6f 70 6c 65 20 6f 72 | 0a 70 72 6f 67 72 61 6d |eople or|.program|
|00000980| 73 20 6d 61 79 20 62 65 | 20 72 65 61 64 69 6e 67 |s may be| reading|
|00000990| 20 79 6f 75 72 20 6d 61 | 69 6c 2e 20 20 52 65 63 | your ma|il. Rec|
|000009a0| 65 6e 74 20 65 76 65 6e | 74 73 20 69 6e 20 74 68 |ent even|ts in th|
|000009b0| 65 20 55 53 20 63 6f 6e | 67 72 65 73 73 20 6d 61 |e US con|gress ma|
|000009c0| 79 20 0a 5f 72 65 71 75 | 69 72 65 5f 20 49 6e 74 |y ._requ|ire_ Int|
|000009d0| 65 72 6e 65 74 20 53 65 | 72 76 69 63 65 20 50 72 |ernet Se|rvice Pr|
|000009e0| 6f 76 69 64 65 72 73 20 | 74 6f 20 6d 6f 6e 69 74 |oviders |to monit|
|000009f0| 6f 72 20 69 6e 63 6f 6d | 69 6e 67 20 6d 61 69 6c |or incom|ing mail|
|00000a00| 20 61 6e 64 20 64 65 74 | 65 72 6d 69 6e 65 20 0a | and det|ermine .|
|00000a10| 77 68 65 74 68 65 72 20 | 6f 72 20 6e 6f 74 20 69 |whether |or not i|
|00000a20| 74 20 69 73 20 22 6f 62 | 73 63 65 6e 65 22 20 6f |t is "ob|scene" o|
|00000a30| 72 20 6c 69 76 65 73 20 | 75 70 20 74 6f 20 70 61 |r lives |up to pa|
|00000a40| 72 74 69 63 75 6c 61 72 | 20 70 61 72 6f 63 68 69 |rticular| parochi|
|00000a50| 61 6c 20 6d 6f 72 61 6c | 20 0a 73 74 61 6e 64 61 |al moral| .standa|
|00000a60| 72 64 73 2e 20 20 53 69 | 6e 63 65 20 74 68 65 79 |rds. Si|nce they|
|00000a70| 20 63 61 6e 27 74 20 73 | 63 61 6e 20 74 68 65 20 | can't s|can the |
|00000a80| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 61 6e 20 65 |contents| of an e|
|00000a90| 6e 63 72 79 70 74 65 64 | 20 6d 65 73 73 61 67 65 |ncrypted| message|
|00000aa0| 2c 20 0a 61 6e 64 20 70 | 72 6f 62 61 62 6c 79 20 |, .and p|robably |
|00000ab0| 64 6f 6e 27 74 20 68 61 | 76 65 20 74 69 6d 65 20 |don't ha|ve time |
|00000ac0| 74 6f 20 6d 61 6e 75 61 | 6c 6c 79 20 6c 6f 6f 6b |to manua|lly look|
|00000ad0| 20 61 74 20 65 61 63 68 | 20 75 75 65 6e 63 6f 64 | at each| uuencod|
|00000ae0| 65 64 20 6d 65 73 73 61 | 67 65 2c 20 0a 73 75 63 |ed messa|ge, .suc|
|00000af0| 68 20 65 6d 61 69 6c 73 | 20 77 69 6c 6c 20 70 72 |h emails| will pr|
|00000b00| 6f 62 61 62 6c 79 20 67 | 6f 20 69 6e 74 6f 20 74 |obably g|o into t|
|00000b10| 68 65 20 62 69 74 20 62 | 75 63 6b 65 74 2e 20 20 |he bit b|ucket. |
|00000b20| 54 68 69 73 20 70 72 6f | 67 72 61 6d 27 73 20 6f |This pro|gram's o|
|00000b30| 75 74 70 75 74 0a 69 73 | 20 68 6f 70 65 66 75 6c |utput.is| hopeful|
|00000b40| 6c 79 20 63 6c 6f 73 65 | 20 65 6e 6f 75 67 68 20 |ly close| enough |
|00000b50| 74 6f 20 6e 6f 72 6d 61 | 6c 20 45 6e 67 6c 69 73 |to norma|l Englis|
|00000b60| 68 20 74 65 78 74 20 74 | 68 61 74 20 69 74 20 77 |h text t|hat it w|
|00000b70| 69 6c 6c 20 73 6c 69 70 | 20 62 79 0a 61 6e 79 20 |ill slip| by.any |
|00000b80| 6b 69 6e 64 20 6f 66 20 | 61 75 74 6f 6d 61 74 65 |kind of |automate|
|00000b90| 64 20 73 63 61 6e 6e 69 | 6e 67 2e 0a 20 20 20 0a |d scanni|ng.. .|
|00000ba0| 20 20 20 54 65 78 74 6f | 20 74 65 78 74 20 66 69 | Texto| text fi|
|00000bb0| 6c 65 73 20 6c 6f 6f 6b | 20 6c 69 6b 65 20 73 6f |les look| like so|
|00000bc0| 6d 65 74 68 69 6e 67 20 | 62 65 74 77 65 65 6e 20 |mething |between |
|00000bd0| 6d 61 64 20 6c 69 62 73 | 20 61 6e 64 20 62 61 64 |mad libs| and bad|
|00000be0| 20 70 6f 65 74 72 79 2c | 0a 28 61 6c 74 68 6f 75 | poetry,|.(althou|
|00000bf0| 67 68 20 74 68 65 79 20 | 64 6f 20 73 6f 6d 65 74 |gh they |do somet|
|00000c00| 69 6d 65 73 20 63 6f 6e | 74 61 69 6e 20 64 65 65 |imes con|tain dee|
|00000c10| 70 20 63 6f 73 6d 69 63 | 20 74 72 75 74 68 73 29 |p cosmic| truths)|
|00000c20| 20 61 6e 64 20 73 68 6f | 75 6c 64 20 62 65 20 63 | and sho|uld be c|
|00000c30| 6c 6f 73 65 0a 65 6e 6f | 75 67 68 20 74 6f 20 6e |lose.eno|ugh to n|
|00000c40| 6f 72 6d 61 6c 20 65 6e | 67 6c 69 73 68 20 74 6f |ormal en|glish to|
|00000c50| 20 67 65 74 20 70 61 73 | 74 20 73 69 6d 70 6c 65 | get pas|t simple|
|00000c60| 2d 6d 69 6e 64 65 64 20 | 6d 61 69 6c 20 73 63 61 |-minded |mail sca|
|00000c70| 6e 6e 65 72 73 20 61 6e | 64 20 74 6f 0a 65 6e 74 |nners an|d to.ent|
|00000c80| 65 72 74 61 69 6e 20 72 | 65 61 64 65 72 73 20 6f |ertain r|eaders o|
|00000c90| 66 20 74 61 6c 6b 2e 62 | 69 7a 61 72 72 65 2e 0a |f talk.b|izarre..|
|00000ca0| 0a 20 20 20 54 65 78 74 | 6f 20 77 6f 72 6b 73 20 |. Text|o works |
|00000cb0| 6a 75 73 74 20 6c 69 6b | 65 20 61 20 73 69 6d 70 |just lik|e a simp|
|00000cc0| 6c 65 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 20 |le subst|itution |
|00000cd0| 63 69 70 68 65 72 2c 20 | 65 61 63 68 20 6f 66 20 |cipher, |each of |
|00000ce0| 74 68 65 20 36 34 20 61 | 73 63 69 69 20 0a 73 79 |the 64 a|scii .sy|
|00000cf0| 6d 62 6f 6c 73 20 75 73 | 65 64 20 62 79 20 70 67 |mbols us|ed by pg|
|00000d00| 70 20 61 73 63 69 69 20 | 61 72 6d 6f 75 72 20 6f |p ascii |armour o|
|00000d10| 72 20 75 75 65 6e 63 6f | 64 65 20 69 73 20 72 65 |r uuenco|de is re|
|00000d20| 70 6c 61 63 65 64 20 62 | 79 20 61 6e 20 65 6e 67 |placed b|y an eng|
|00000d30| 6c 69 73 68 20 77 6f 72 | 64 2e 20 20 0a 4e 6f 74 |lish wor|d. .Not|
|00000d40| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 77 6f 72 64 | all of |the word|
|00000d50| 73 20 69 6e 20 74 68 65 | 20 72 65 73 75 6c 74 69 |s in the| resulti|
|00000d60| 6e 67 20 45 6e 67 6c 69 | 73 68 20 61 72 65 20 73 |ng Engli|sh are s|
|00000d70| 69 67 6e 69 66 69 63 61 | 6e 74 2c 20 6f 6e 6c 79 |ignifica|nt, only|
|00000d80| 20 74 68 6f 73 65 20 0a | 6e 6f 75 6e 73 2c 20 76 | those .|nouns, v|
|00000d90| 65 72 62 73 2c 20 61 64 | 6a 65 63 74 69 76 65 73 |erbs, ad|jectives|
|00000da0| 2c 20 61 6e 64 20 61 64 | 76 65 72 62 73 20 75 73 |, and ad|verbs us|
|00000db0| 65 64 20 74 6f 20 66 69 | 6c 6c 20 69 6e 20 74 68 |ed to fi|ll in th|
|00000dc0| 65 20 70 72 65 73 65 74 | 20 73 65 6e 74 65 6e 63 |e preset| sentenc|
|00000dd0| 65 0a 73 74 72 75 63 74 | 75 72 65 73 2e 20 20 50 |e.struct|ures. P|
|00000de0| 75 6e 63 74 75 61 74 69 | 6f 6e 20 61 6e 64 20 22 |unctuati|on and "|
|00000df0| 63 6f 6e 6e 65 63 74 69 | 6e 67 22 20 77 6f 72 64 |connecti|ng" word|
|00000e00| 73 20 28 6f 72 20 61 6e | 79 20 6f 74 68 65 72 20 |s (or an|y other |
|00000e10| 77 6f 72 64 73 20 6e 6f | 74 20 69 6e 20 0a 74 68 |words no|t in .th|
|00000e20| 65 20 64 69 63 74 69 6f | 6e 61 72 79 29 20 61 72 |e dictio|nary) ar|
|00000e30| 65 20 69 67 6e 6f 72 65 | 64 2e 0a 0a 20 20 20 54 |e ignore|d... T|
|00000e40| 68 65 20 6f 62 76 69 6f | 75 73 20 6d 61 69 6e 20 |he obvio|us main |
|00000e50| 64 72 61 77 62 61 63 6b | 20 74 6f 20 75 73 69 6e |drawback| to usin|
|00000e60| 67 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 3a 20 |g this p|rogram: |
|00000e70| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 74 65 |the resu|lting te|
|00000e80| 78 74 0a 69 73 20 6c 61 | 72 67 65 72 20 74 68 61 |xt.is la|rger tha|
|00000e90| 6e 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 64 |n the or|iginal d|
|00000ea0| 61 74 61 20 62 79 20 61 | 20 66 61 63 74 6f 72 20 |ata by a| factor |
|00000eb0| 6f 66 20 31 30 2e 20 20 | 54 68 69 73 20 69 73 20 |of 10. |This is |
|00000ec0| 62 61 64 20 74 6f 20 74 | 68 65 0a 70 6f 69 6e 74 |bad to t|he.point|
|00000ed0| 20 6f 66 20 75 73 65 6c | 65 73 73 6e 65 73 73 20 | of usel|essness |
|00000ee0| 69 66 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 73 |if you n|eed to s|
|00000ef0| 65 6e 64 20 61 20 35 4d | 42 20 75 75 65 6e 63 6f |end a 5M|B uuenco|
|00000f00| 64 65 64 20 66 69 6c 65 | 2e 20 20 57 68 61 74 0a |ded file|. What.|
|00000f10| 61 72 65 20 73 6f 6d 65 | 20 70 6f 73 73 69 62 6c |are some| possibl|
|00000f20| 65 20 73 6f 6c 75 74 69 | 6f 6e 73 20 74 6f 20 74 |e soluti|ons to t|
|00000f30| 68 69 73 20 70 72 6f 62 | 6c 65 6d 3f 20 20 55 73 |his prob|lem? Us|
|00000f40| 69 6e 67 20 73 68 6f 72 | 74 65 72 20 77 6f 72 64 |ing shor|ter word|
|00000f50| 73 20 77 6f 75 6c 64 20 | 0a 79 69 65 6c 64 20 6f |s would |.yield o|
|00000f60| 6e 6c 79 20 6d 69 6e 69 | 6d 61 6c 20 69 6d 70 72 |nly mini|mal impr|
|00000f70| 6f 76 65 6d 65 6e 74 20 | 61 73 20 6d 6f 73 74 20 |ovement |as most |
|00000f80| 6f 66 20 74 68 65 20 77 | 6f 72 64 73 20 61 72 65 |of the w|ords are|
|00000f90| 20 70 72 65 74 74 79 20 | 73 68 6f 72 74 20 6e 6f | pretty |short no|
|00000fa0| 77 2c 0a 61 6e 64 20 79 | 6f 75 20 77 6f 75 6c 64 |w,.and y|ou would|
|00000fb0| 20 73 74 69 6c 6c 20 6e | 65 65 64 20 74 68 65 20 | still n|eed the |
|00000fc0| 73 61 6d 65 20 6e 75 6d | 62 65 72 20 6f 66 20 65 |same num|ber of e|
|00000fd0| 6e 67 6c 69 73 68 20 77 | 6f 72 64 73 2e 20 20 54 |nglish w|ords. T|
|00000fe0| 68 65 20 62 65 73 74 20 | 0a 73 6f 6c 75 74 69 6f |he best |.solutio|
|00000ff0| 6e 20 49 20 63 61 6e 20 | 74 68 69 6e 6b 20 6f 66 |n I can |think of|
|00001000| 20 69 73 20 74 6f 20 75 | 73 65 20 6d 6f 72 65 20 | is to u|se more |
|00001010| 77 6f 72 64 73 2c 20 6f | 6e 65 20 66 6f 72 20 65 |words, o|ne for e|
|00001020| 76 65 72 79 20 32 20 73 | 79 6d 62 6f 6c 73 20 0a |very 2 s|ymbols .|
|00001030| 69 6e 73 74 65 61 64 20 | 6f 66 20 61 20 6f 6e 65 |instead |of a one|
|00001040| 2d 74 6f 2d 6f 6e 65 20 | 73 79 6d 62 6f 6c 20 74 |-to-one |symbol t|
|00001050| 6f 20 77 6f 72 64 20 6d | 61 70 70 69 6e 67 2e 20 |o word m|apping. |
|00001060| 20 54 68 69 73 20 72 65 | 71 75 69 72 65 73 20 34 | This re|quires 4|
|00001070| 30 39 36 20 77 6f 72 64 | 73 20 0a 66 6f 72 20 65 |096 word|s .for e|
|00001080| 61 63 68 20 70 61 72 74 | 20 6f 66 20 73 70 65 65 |ach part| of spee|
|00001090| 63 68 2c 20 28 66 69 6e | 64 69 6e 67 20 74 68 61 |ch, (fin|ding tha|
|000010a0| 74 20 6d 61 6e 79 20 61 | 64 76 65 72 62 73 20 77 |t many a|dverbs w|
|000010b0| 69 6c 6c 20 62 65 20 61 | 20 72 65 61 6c 20 63 68 |ill be a| real ch|
|000010c0| 61 6c 6c 65 6e 67 65 29 | 2c 20 0a 62 75 74 20 73 |allenge)|, .but s|
|000010d0| 65 61 72 63 68 20 73 70 | 65 65 64 20 73 68 6f 75 |earch sp|eed shou|
|000010e0| 6c 64 6e 27 74 20 62 65 | 63 6f 6d 65 20 61 20 62 |ldn't be|come a b|
|000010f0| 69 67 20 66 61 63 74 6f | 72 20 77 68 65 6e 20 74 |ig facto|r when t|
|00001100| 72 61 6e 73 66 6f 72 6d | 69 6e 67 20 74 65 78 74 |ransform|ing text|
|00001110| 20 74 6f 20 64 61 74 61 | 2c 0a 73 69 6e 63 65 20 | to data|,.since |
|00001120| 74 65 78 74 6f 20 75 73 | 65 73 20 61 20 68 61 73 |texto us|es a has|
|00001130| 68 20 74 61 62 6c 65 20 | 66 6f 72 20 74 68 65 20 |h table |for the |
|00001140| 77 6f 72 64 73 20 61 6e | 64 20 74 68 65 69 72 20 |words an|d their |
|00001150| 6c 65 6e 67 74 68 73 20 | 69 6e 20 6f 72 64 65 72 |lengths |in order|
|00001160| 20 74 6f 0a 6d 69 6e 69 | 6d 69 7a 65 20 73 65 61 | to.mini|mize sea|
|00001170| 72 63 68 20 74 69 6d 65 | 73 2e 20 20 54 68 65 20 |rch time|s. The |
|00001180| 6e 65 74 20 72 65 73 75 | 6c 74 20 77 6f 75 6c 64 |net resu|lt would|
|00001190| 20 70 72 6f 62 61 62 6c | 79 20 62 65 20 61 6e 20 | probabl|y be an |
|000011a0| 61 76 65 72 61 67 65 20 | 65 78 70 61 6e 73 69 6f |average |expansio|
|000011b0| 6e 20 0a 62 79 20 7e 35 | 78 20 69 6e 73 74 65 61 |n .by ~5|x instea|
|000011c0| 64 20 6f 66 20 7e 31 30 | 78 2c 20 77 68 69 63 68 |d of ~10|x, which|
|000011d0| 20 69 73 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 | is sign|ificant |
|000011e0| 65 6e 6f 75 67 68 20 74 | 6f 20 77 61 72 72 61 6e |enough t|o warran|
|000011f0| 74 20 74 72 79 69 6e 67 | 20 69 74 2e 0a 43 68 61 |t trying| it..Cha|
|00001200| 6e 67 69 6e 67 20 74 68 | 65 20 63 6f 64 65 20 77 |nging th|e code w|
|00001210| 69 6c 6c 20 62 65 20 65 | 61 73 79 2c 20 74 68 65 |ill be e|asy, the|
|00001220| 20 68 61 72 64 20 70 61 | 72 74 20 69 73 20 74 79 | hard pa|rt is ty|
|00001230| 70 69 6e 67 20 69 6e 20 | 74 68 65 20 64 69 63 74 |ping in |the dict|
|00001240| 69 6f 6e 61 72 69 65 73 | 2e 0a 4c 6f 6f 6b 20 66 |ionaries|..Look f|
|00001250| 6f 72 20 74 68 69 73 20 | 66 65 61 74 75 72 65 20 |or this |feature |
|00001260| 69 6e 20 74 65 78 74 6f | 20 32 2e 30 20 63 6f 6d |in texto| 2.0 com|
|00001270| 69 6e 67 20 52 65 61 6c | 20 53 6f 6f 6e 20 74 6f |ing Real| Soon to|
|00001280| 20 61 20 6e 65 74 20 6e | 65 61 72 20 79 6f 75 2e | a net n|ear you.|
|00001290| 0a 0a 20 20 20 53 69 6e | 63 65 20 77 6f 72 64 73 |.. Sin|ce words|
|000012a0| 20 61 72 65 20 6f 63 63 | 61 73 69 6f 6e 61 6c 6c | are occ|asionall|
|000012b0| 79 20 70 6c 75 72 61 6c | 69 7a 65 64 20 61 6e 64 |y plural|ized and|
|000012c0| 2f 6f 72 20 67 65 72 75 | 6e 64 69 7a 65 64 20 28 |/or geru|ndized (|
|000012d0| 2d 69 6e 67 29 2c 20 61 | 6e 64 0a 74 68 65 79 27 |-ing), a|nd.they'|
|000012e0| 72 65 20 6e 6f 74 20 61 | 6c 6c 20 72 65 67 75 6c |re not a|ll regul|
|000012f0| 61 72 20 76 65 72 62 73 | 2f 6e 6f 75 6e 73 2c 20 |ar verbs|/nouns, |
|00001300| 74 68 65 72 65 20 61 72 | 65 20 70 6c 65 6e 74 79 |there ar|e plenty|
|00001310| 20 6f 66 20 73 74 72 61 | 6e 67 65 20 73 70 65 6c | of stra|nge spel|
|00001320| 6c 69 6e 67 0a 6d 69 73 | 74 61 6b 65 73 2e 20 20 |ling.mis|takes. |
|00001330| 57 68 69 6c 65 20 6e 6f | 72 6d 61 6c 6c 79 20 49 |While no|rmally I|
|00001340| 20 64 65 73 70 69 73 65 | 20 6d 69 73 73 70 65 6c | despise| misspel|
|00001350| 6c 65 64 20 77 6f 72 64 | 73 2c 20 74 68 65 79 20 |led word|s, they |
|00001360| 61 64 64 20 61 20 6e 69 | 63 65 0a 68 75 6d 61 6e |add a ni|ce.human|
|00001370| 20 74 6f 75 63 68 20 74 | 6f 20 74 68 65 20 72 65 | touch t|o the re|
|00001380| 70 65 74 69 74 69 76 65 | 20 74 65 78 74 2c 20 61 |petitive| text, a|
|00001390| 6e 64 20 61 64 64 20 74 | 6f 20 74 68 65 20 66 65 |nd add t|o the fe|
|000013a0| 65 6c 69 6e 67 20 74 68 | 61 74 20 77 68 6f 2f 77 |eling th|at who/w|
|000013b0| 68 61 74 65 76 65 72 0a | 77 72 6f 74 65 20 74 68 |hatever.|wrote th|
|000013c0| 65 20 74 65 78 74 20 77 | 61 73 20 71 75 69 74 65 |e text w|as quite|
|000013d0| 20 63 6c 65 61 72 6c 79 | 20 6f 75 74 20 6f 66 20 | clearly| out of |
|000013e0| 68 69 73 2f 68 65 72 2f | 69 74 73 20 6d 69 6e 64 |his/her/|its mind|
|000013f0| 2e 20 20 0a 0a 0a 55 73 | 61 67 65 3a 0a 2d 2d 2d |. ...Us|age:.---|
|00001400| 2d 2d 2d 0a 20 20 20 0a | 74 65 78 74 6f 20 6d 73 |---. .|texto ms|
|00001410| 67 66 69 6c 65 20 3e 20 | 65 6e 67 66 69 6c 65 20 |gfile > |engfile |
|00001420| 20 20 20 20 20 20 20 20 | 2d 20 54 72 61 6e 73 66 | |- Transf|
|00001430| 6f 72 6d 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |orms the| content|
|00001440| 73 20 6f 66 20 6d 73 67 | 66 69 6c 65 20 69 6e 74 |s of msg|file int|
|00001450| 6f 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o . | |
|00001460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001470| 20 20 20 20 20 45 6e 67 | 6c 69 73 68 20 74 65 78 | Eng|lish tex|
|00001480| 74 20 61 6e 64 20 70 6c | 61 63 65 73 20 72 65 73 |t and pl|aces res|
|00001490| 75 6c 74 73 20 69 6e 20 | 22 65 6e 67 66 69 6c 65 |ults in |"engfile|
|000014a0| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|000014b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014c0| 20 20 20 20 6d 73 67 66 | 69 6c 65 20 6d 75 73 74 | msgf|ile must|
|000014d0| 20 62 65 20 61 20 75 75 | 65 6e 63 6f 64 65 64 20 | be a uu|encoded |
|000014e0| 6f 72 20 70 67 70 20 61 | 73 63 69 69 2d 0a 20 20 |or pgp a|scii-. |
|000014f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001510| 61 72 6d 6f 75 72 65 64 | 20 74 65 78 74 20 66 69 |armoured| text fi|
|00001520| 6c 65 2e 0a 0a 74 65 78 | 74 6f 20 2d 70 20 65 6e |le...tex|to -p en|
|00001530| 67 66 69 6c 65 20 3e 20 | 70 67 70 66 69 6c 65 20 |gfile > |pgpfile |
|00001540| 20 20 20 20 20 2d 20 54 | 61 6b 65 73 20 45 6e 67 | - T|akes Eng|
|00001550| 6c 69 73 68 20 74 65 78 | 74 20 66 72 6f 6d 20 65 |lish tex|t from e|
|00001560| 6e 67 66 69 6c 65 20 61 | 6e 64 20 70 72 6f 64 75 |ngfile a|nd produ|
|00001570| 63 65 73 0a 4f 52 20 20 | 20 20 20 20 20 20 20 20 |ces.OR | |
|00001580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001590| 20 20 20 20 20 20 61 20 | 70 67 70 20 61 73 63 69 | a |pgp asci|
|000015a0| 69 2d 61 72 6d 6f 75 72 | 65 64 20 74 65 78 74 20 |i-armour|ed text |
|000015b0| 66 69 6c 65 2c 20 77 68 | 69 63 68 20 77 69 6c 6c |file, wh|ich will|
|000015c0| 20 0a 74 65 78 74 6f 20 | 2d 70 20 65 6e 67 66 69 | .texto |-p engfi|
|000015d0| 6c 65 20 7c 20 70 67 70 | 20 2d 66 20 20 20 20 20 |le | pgp| -f |
|000015e0| 20 20 20 20 62 65 20 72 | 65 61 64 61 62 6c 65 20 | be r|eadable |
|000015f0| 62 79 20 70 67 70 20 69 | 66 20 74 68 65 20 6f 72 |by pgp i|f the or|
|00001600| 69 67 69 6e 61 6c 20 6d | 65 73 73 61 67 65 20 0a |iginal m|essage .|
|00001610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001630| 20 20 66 69 6c 65 20 77 | 61 73 2e 20 20 41 6c 74 | file w|as. Alt|
|00001640| 65 72 6e 61 74 69 76 65 | 6c 79 2c 20 74 68 65 20 |ernative|ly, the |
|00001650| 6f 75 74 70 75 74 20 66 | 72 6f 6d 0a 20 20 20 20 |output f|rom. |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 65 | | te|
|00001680| 78 74 6f 20 63 61 6e 20 | 62 65 20 70 69 70 65 64 |xto can |be piped|
|00001690| 20 64 69 72 65 63 74 6c | 79 20 69 6e 74 6f 20 70 | directl|y into p|
|000016a0| 67 70 2e 0a 0a 74 65 78 | 74 6f 20 2d 75 20 65 6e |gp...tex|to -u en|
|000016b0| 67 66 69 6c 65 20 3e 20 | 75 75 66 69 6c 65 20 20 |gfile > |uufile |
|000016c0| 20 20 20 20 2d 20 54 61 | 6b 65 73 20 45 6e 67 6c | - Ta|kes Engl|
|000016d0| 69 73 68 20 74 65 78 74 | 20 66 72 6f 6d 20 65 6e |ish text| from en|
|000016e0| 67 66 69 6c 65 20 61 6e | 64 20 70 72 6f 64 75 63 |gfile an|d produc|
|000016f0| 65 73 0a 4f 52 20 20 20 | 20 20 20 20 20 20 20 20 |es.OR | |
|00001700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001710| 20 20 20 20 20 61 20 75 | 75 65 6e 63 6f 64 65 64 | a u|uencoded|
|00001720| 20 66 69 6c 65 2c 20 77 | 68 69 63 68 20 77 69 6c | file, w|hich wil|
|00001730| 6c 20 62 65 20 72 65 61 | 64 61 62 6c 65 20 62 79 |l be rea|dable by|
|00001740| 0a 74 65 78 74 6f 20 2d | 75 20 65 6e 67 66 69 6c |.texto -|u engfil|
|00001750| 65 20 7c 20 75 75 64 65 | 63 6f 64 65 20 20 20 20 |e | uude|code |
|00001760| 20 20 20 75 75 65 6e 63 | 6f 64 65 20 69 66 20 74 | uuenc|ode if t|
|00001770| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 6d 65 73 73 |he origi|nal mess|
|00001780| 61 67 65 20 66 69 6c 65 | 20 77 61 73 2e 20 20 0a |age file| was. .|
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017b0| 20 20 41 6c 74 65 72 6e | 61 74 69 76 65 6c 79 2c | Altern|atively,|
|000017c0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 72 6f 6d | the out|put from|
|000017d0| 20 74 65 78 74 6f 20 63 | 61 6e 20 0a 20 20 20 20 | texto c|an . |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 | | be|
|00001800| 20 70 69 70 65 64 20 64 | 69 72 65 63 74 6c 79 20 | piped d|irectly |
|00001810| 69 6e 74 6f 20 75 75 64 | 65 63 6f 64 65 2e 20 20 |into uud|ecode. |
|00001820| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001840| 20 20 20 4e 4f 54 45 20 | 74 68 61 74 20 75 75 64 | NOTE |that uud|
|00001850| 65 63 6f 64 69 6e 67 20 | 74 68 65 20 72 65 73 75 |ecoding |the resu|
|00001860| 6c 74 73 20 77 69 6c 6c | 20 61 6c 77 61 79 73 20 |lts will| always |
|00001870| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001890| 20 20 20 70 72 6f 64 75 | 63 65 20 61 20 66 69 6c | produ|ce a fil|
|000018a0| 65 20 63 61 6c 6c 65 64 | 20 22 74 65 78 74 6f 2e |e called| "texto.|
|000018b0| 6f 75 74 22 20 6d 6f 64 | 65 20 36 34 34 2c 20 0a |out" mod|e 644, .|
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018e0| 20 20 75 6e 6c 65 73 73 | 20 79 6f 75 20 72 65 64 | unless| you red|
|000018f0| 69 72 65 63 74 20 74 65 | 78 74 6f 27 73 20 6f 75 |irect te|xto's ou|
|00001900| 74 70 75 74 20 69 6e 74 | 6f 20 61 20 0a 20 20 20 |tput int|o a . |
|00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f|
|00001930| 69 6c 65 20 61 6e 64 20 | 68 61 6e 64 20 65 64 69 |ile and |hand edi|
|00001940| 74 20 74 68 61 74 20 66 | 69 6c 65 2e 0a 0a 49 6e |t that f|ile...In|
|00001950| 73 74 61 6c 6c 61 74 69 | 6f 6e 3a 0a 2d 2d 2d 2d |stallati|on:.----|
|00001960| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 20 20 20 54 68 |--------|-.. Th|
|00001970| 69 73 20 70 72 6f 67 72 | 61 6d 20 68 61 73 20 6f |is progr|am has o|
|00001980| 6e 6c 79 20 62 65 65 6e | 20 74 65 73 74 65 64 20 |nly been| tested |
|00001990| 6f 6e 20 49 52 49 58 20 | 34 2e 30 2e 35 2c 20 6c |on IRIX |4.0.5, l|
|000019a0| 69 6e 75 78 20 6b 65 72 | 6e 65 6c 20 31 2e 30 2e |inux ker|nel 1.0.|
|000019b0| 78 2c 20 0a 61 6e 64 20 | 53 6f 6c 61 72 69 73 20 |x, .and |Solaris |
|000019c0| 32 2e 33 2e 20 20 54 6f | 20 62 75 69 6c 64 20 69 |2.3. To| build i|
|000019d0| 74 2c 20 6a 75 73 74 20 | 74 79 70 65 20 22 6d 61 |t, just |type "ma|
|000019e0| 6b 65 22 2c 20 6f 6e 20 | 53 47 49 73 20 6d 61 6b |ke", on |SGIs mak|
|000019f0| 65 20 69 74 20 77 69 74 | 68 20 74 68 65 20 0a 63 |e it wit|h the .c|
|00001a00| 6f 6d 6d 61 6e 64 20 22 | 6d 61 6b 65 20 73 67 69 |ommand "|make sgi|
|00001a10| 22 2e 20 20 49 66 20 79 | 6f 75 27 72 65 20 6f 6e |". If y|ou're on|
|00001a20| 20 61 20 53 6f 6c 61 72 | 69 73 20 6d 61 63 68 69 | a Solar|is machi|
|00001a30| 6e 65 20 6f 72 20 61 6e | 79 20 6f 74 68 65 72 20 |ne or an|y other |
|00001a40| 6d 61 63 68 69 6e 65 20 | 0a 77 68 6f 73 65 20 75 |machine |.whose u|
|00001a50| 75 65 6e 63 6f 64 65 20 | 75 73 65 73 20 73 70 61 |uencode |uses spa|
|00001a60| 63 65 73 20 69 6e 73 74 | 65 61 64 20 6f 66 20 60 |ces inst|ead of `|
|00001a70| 20 63 68 61 72 61 63 74 | 65 72 73 2c 20 75 6e 63 | charact|ers, unc|
|00001a80| 6f 6d 6d 65 6e 74 20 74 | 68 65 0a 22 44 45 46 49 |omment t|he."DEFI|
|00001a90| 4e 45 53 22 20 6c 69 6e | 65 20 69 6e 20 74 68 65 |NES" lin|e in the|
|00001aa0| 20 6d 61 6b 65 66 69 6c | 65 2e 0a 0a 0a 52 6f 6c | makefil|e....Rol|
|00001ab0| 6c 69 6e 67 20 79 6f 75 | 72 20 6f 77 6e 3a 0a 2d |ling you|r own:.-|
|00001ac0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ad0| 0a 0a 20 20 20 54 68 65 | 20 75 73 75 61 6c 6c 79 |.. The| usually|
|00001ae0| 2d 63 6f 72 72 65 63 74 | 20 45 6e 67 6c 69 73 68 |-correct| English|
|00001af0| 20 73 65 6e 74 65 6e 63 | 65 20 73 74 72 75 63 74 | sentenc|e struct|
|00001b00| 75 72 65 73 20 61 72 65 | 20 66 6f 75 6e 64 20 69 |ures are| found i|
|00001b10| 6e 20 74 68 65 20 66 69 | 6c 65 20 0a 22 73 74 72 |n the fi|le ."str|
|00001b20| 75 63 74 73 22 2c 20 77 | 68 69 63 68 20 69 73 20 |ucts", w|hich is |
|00001b30| 62 61 73 69 63 61 6c 6c | 79 20 61 20 66 69 6c 65 |basicall|y a file|
|00001b40| 20 6f 66 20 6d 61 64 20 | 6c 69 62 2d 74 79 70 65 | of mad |lib-type|
|00001b50| 20 22 66 69 6c 6c 20 69 | 6e 20 74 68 65 20 62 6c | "fill i|n the bl|
|00001b60| 61 6e 6b 22 0a 73 65 6e | 74 65 6e 63 65 73 2e 20 |ank".sen|tences. |
|00001b70| 20 46 65 65 6c 20 66 72 | 65 65 20 74 6f 20 61 64 | Feel fr|ee to ad|
|00001b80| 64 20 79 6f 75 72 20 6f | 77 6e 2c 20 6a 75 73 74 |d your o|wn, just|
|00001b90| 20 62 65 20 72 65 61 6c | 6c 79 20 72 65 61 6c 6c | be real|ly reall|
|00001ba0| 79 20 63 61 72 65 66 75 | 6c 20 61 62 6f 75 74 0a |y carefu|l about.|
|00001bb0| 6e 6f 74 20 75 73 69 6e | 67 20 77 6f 72 64 73 20 |not usin|g words |
|00001bc0| 69 6e 20 74 68 65 20 22 | 77 6f 72 64 73 22 20 66 |in the "|words" f|
|00001bd0| 69 6c 65 2e 20 20 59 6f | 75 27 72 65 20 73 61 66 |ile. Yo|u're saf|
|00001be0| 65 20 69 66 20 79 6f 75 | 20 75 73 65 20 77 6f 72 |e if you| use wor|
|00001bf0| 64 73 20 74 68 61 74 0a | 79 6f 75 20 73 65 65 20 |ds that.|you see |
|00001c00| 65 6c 73 65 77 68 65 72 | 65 20 69 6e 20 74 68 65 |elsewher|e in the|
|00001c10| 20 22 73 74 72 75 63 74 | 73 22 20 66 69 6c 65 2e | "struct|s" file.|
|00001c20| 20 20 55 73 69 6e 67 20 | 76 61 72 79 69 6e 67 20 | Using |varying |
|00001c30| 22 73 74 72 75 63 74 73 | 22 20 66 69 6c 65 73 0a |"structs|" files.|
|00001c40| 63 6f 75 6c 64 20 61 74 | 20 6c 65 61 73 74 20 61 |could at| least a|
|00001c50| 6e 6e 6f 79 20 6d 61 69 | 6c 20 73 63 61 6e 6e 65 |nnoy mai|l scanne|
|00001c60| 72 73 2e 20 20 55 73 69 | 6e 67 20 64 69 66 66 65 |rs. Usi|ng diffe|
|00001c70| 72 65 6e 74 20 22 77 6f | 72 64 73 22 20 66 69 6c |rent "wo|rds" fil|
|00001c80| 65 73 20 61 73 0a 77 65 | 6c 6c 20 73 68 6f 75 6c |es as.we|ll shoul|
|00001c90| 64 20 74 6f 74 61 6c 6c | 79 20 64 65 66 65 61 74 |d totall|y defeat|
|00001ca0| 20 74 68 65 6d 2e 0a 0a | 20 20 20 54 68 65 20 36 | them...| The 6|
|00001cb0| 34 20 76 65 72 62 73 2c | 20 36 34 20 61 64 6a 65 |4 verbs,| 64 adje|
|00001cc0| 63 74 69 76 65 73 2c 20 | 36 34 20 61 64 76 65 72 |ctives, |64 adver|
|00001cd0| 62 73 2c 20 36 34 20 70 | 6c 61 63 65 73 2c 20 61 |bs, 64 p|laces, a|
|00001ce0| 6e 64 20 36 34 20 74 68 | 69 6e 67 73 20 0a 77 68 |nd 64 th|ings .wh|
|00001cf0| 69 63 68 20 61 72 65 20 | 75 73 65 64 20 74 6f 20 |ich are |used to |
|00001d00| 66 69 6c 6c 20 69 6e 20 | 74 68 65 20 62 6c 61 6e |fill in |the blan|
|00001d10| 6b 73 20 61 72 65 20 69 | 6e 20 74 68 65 20 22 77 |ks are i|n the "w|
|00001d20| 6f 72 64 73 22 20 66 69 | 6c 65 2e 20 20 41 67 61 |ords" fi|le. Aga|
|00001d30| 69 6e 2c 20 66 65 65 6c | 0a 66 72 65 65 20 74 6f |in, feel|.free to|
|00001d40| 20 61 64 64 20 79 6f 75 | 72 20 6f 77 6e 2c 20 62 | add you|r own, b|
|00001d50| 75 74 20 61 67 61 69 6e | 2c 20 62 65 20 63 61 72 |ut again|, be car|
|00001d60| 65 66 75 6c 2e 20 20 44 | 6f 6e 27 74 20 75 73 65 |eful. D|on't use|
|00001d70| 20 77 6f 72 64 73 20 74 | 68 61 74 20 65 6e 64 20 | words t|hat end |
|00001d80| 69 6e 20 0a 22 73 22 20 | 6f 72 20 22 69 6e 67 22 |in ."s" |or "ing"|
|00001d90| 20 28 74 68 65 79 27 6c | 6c 20 67 65 74 20 63 68 | (they'l|l get ch|
|00001da0| 6f 70 70 65 64 29 2c 20 | 64 6f 6e 27 74 20 75 73 |opped), |don't us|
|00001db0| 65 20 77 6f 72 64 73 20 | 74 68 61 74 20 61 72 65 |e words |that are|
|00001dc0| 20 61 6c 72 65 61 64 79 | 20 69 6e 20 0a 74 68 65 | already| in .the|
|00001dd0| 72 65 20 28 79 6f 75 20 | 63 61 6e 20 64 6f 75 62 |re (you |can doub|
|00001de0| 6c 65 20 63 68 65 63 6b | 20 77 69 74 68 20 74 68 |le check| with th|
|00001df0| 65 20 63 6f 6d 6d 61 6e | 64 20 22 73 6f 72 74 20 |e comman|d "sort |
|00001e00| 77 6f 72 64 73 20 7c 20 | 75 6e 69 71 20 2d 64 22 |words | |uniq -d"|
|00001e10| 29 2e 20 54 68 65 20 0a | 6f 72 64 65 72 20 6f 66 |). The .|order of|
|00001e20| 20 74 68 65 20 77 6f 72 | 64 73 20 69 6e 20 65 61 | the wor|ds in ea|
|00001e30| 63 68 20 73 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 |ch secti|on of th|
|00001e40| 65 20 66 69 6c 65 20 69 | 73 20 61 6c 73 6f 20 73 |e file i|s also s|
|00001e50| 69 67 6e 69 66 69 63 61 | 6e 74 2c 20 73 6f 20 66 |ignifica|nt, so f|
|00001e60| 6f 72 20 0a 65 78 61 6d | 70 6c 65 20 72 65 61 72 |or .exam|ple rear|
|00001e70| 72 61 6e 67 69 6e 67 20 | 74 68 65 20 6e 6f 75 6e |ranging |the noun|
|00001e80| 73 20 77 69 6c 6c 20 63 | 68 61 6e 67 65 20 74 68 |s will c|hange th|
|00001e90| 65 20 72 65 73 75 6c 74 | 2e 0a 0a 20 20 20 49 66 |e result|... If|
|00001ea0| 20 79 6f 75 20 75 73 65 | 20 61 20 6d 6f 64 69 66 | you use| a modif|
|00001eb0| 69 65 64 20 22 77 6f 72 | 64 73 22 20 66 69 6c 65 |ied "wor|ds" file|
|00001ec0| 2c 20 74 68 65 20 70 65 | 72 73 6f 6e 20 6f 6e 20 |, the pe|rson on |
|00001ed0| 74 68 65 20 6f 74 68 65 | 72 20 65 6e 64 20 6f 66 |the othe|r end of|
|00001ee0| 20 0a 79 6f 75 72 20 63 | 6f 6d 6d 75 6e 69 63 61 | .your c|ommunica|
|00001ef0| 74 69 6f 6e 20 6d 75 73 | 74 20 6f 66 20 63 6f 75 |tion mus|t of cou|
|00001f00| 72 73 65 20 62 65 20 75 | 73 69 6e 67 20 74 68 65 |rse be u|sing the|
|00001f10| 20 73 61 6d 65 20 6f 6e | 65 2c 20 6f 72 20 74 68 | same on|e, or th|
|00001f20| 65 20 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |e transf|ormation|
|00001f30| 20 0a 77 69 6c 6c 20 66 | 61 69 6c 20 6d 69 73 65 | .will f|ail mise|
|00001f40| 72 61 62 6c 79 2e 20 20 | 54 68 65 20 22 73 74 72 |rably. |The "str|
|00001f50| 75 63 74 73 22 20 66 69 | 6c 65 20 69 73 20 74 6f |ucts" fi|le is to|
|00001f60| 74 61 6c 6c 79 20 69 72 | 72 65 6c 65 76 61 6e 74 |tally ir|relevant|
|00001f70| 20 68 6f 77 65 76 65 72 | 2c 20 61 6e 64 0a 63 61 | however|, and.ca|
|00001f80| 6e 20 62 65 20 6d 6f 64 | 69 66 69 65 64 20 74 6f |n be mod|ified to|
|00001f90| 20 73 75 69 74 20 79 6f | 75 72 20 74 61 73 74 65 | suit yo|ur taste|
|00001fa0| 20 6f 72 20 6c 69 74 65 | 72 61 72 79 20 73 74 79 | or lite|rary sty|
|00001fb0| 6c 65 2c 20 73 6f 20 6c | 6f 6e 67 20 61 73 20 69 |le, so l|ong as i|
|00001fc0| 74 20 64 6f 65 73 6e 27 | 74 0a 63 6f 6e 66 6c 69 |t doesn'|t.confli|
|00001fd0| 63 74 20 77 69 74 68 20 | 74 68 65 20 22 77 6f 72 |ct with |the "wor|
|00001fe0| 64 73 22 20 66 69 6c 65 | 20 61 73 20 6d 65 6e 74 |ds" file| as ment|
|00001ff0| 69 6f 6e 65 64 20 61 62 | 6f 76 65 2e 20 20 54 68 |ioned ab|ove. Th|
|00002000| 65 20 73 74 72 75 63 74 | 73 20 66 69 6c 65 20 69 |e struct|s file i|
|00002010| 73 0a 6e 6f 74 20 75 73 | 65 64 20 69 6e 20 22 64 |s.not us|ed in "d|
|00002020| 65 63 6f 64 69 6e 67 22 | 20 74 65 78 74 2c 20 73 |ecoding"| text, s|
|00002030| 6f 20 74 77 6f 20 70 65 | 6f 70 6c 65 20 63 61 6e |o two pe|ople can|
|00002040| 20 73 74 69 6c 6c 20 63 | 6f 6d 6d 75 6e 69 63 61 | still c|ommunica|
|00002050| 74 65 20 77 68 65 74 68 | 65 72 0a 6f 72 20 6e 6f |te wheth|er.or no|
|00002060| 74 20 74 68 65 79 20 68 | 61 76 65 20 74 68 65 20 |t they h|ave the |
|00002070| 73 61 6d 65 20 22 73 74 | 72 75 63 74 73 22 20 66 |same "st|ructs" f|
|00002080| 69 6c 65 2e 0a 0a 42 55 | 47 53 0a 2d 2d 2d 2d 0a |ile...BU|GS.----.|
|00002090| 0a 20 20 20 75 75 65 6e | 63 6f 64 65 64 20 66 69 |. uuen|coded fi|
|000020a0| 6c 65 73 20 6c 6f 73 65 | 20 74 68 65 20 6d 6f 64 |les lose| the mod|
|000020b0| 65 20 61 6e 64 20 66 69 | 6c 65 6e 61 6d 65 20 69 |e and fi|lename i|
|000020c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 77 68 69 63 |nformati|on, whic|
|000020d0| 68 20 69 73 20 61 20 62 | 75 6d 6d 65 72 2e 0a 20 |h is a b|ummer.. |
|000020e0| 20 20 41 6c 77 61 79 73 | 20 77 72 69 74 69 6e 67 | Always| writing|
|000020f0| 20 74 6f 20 73 74 64 6f | 75 74 20 6d 61 79 20 6e | to stdo|ut may n|
|00002100| 6f 74 20 62 65 20 74 68 | 65 20 62 65 73 74 20 77 |ot be th|e best w|
|00002110| 61 79 20 74 6f 20 67 6f | 2e 0a 20 20 20 54 68 65 |ay to go|.. The|
|00002120| 20 74 65 78 74 20 70 72 | 6f 64 75 63 65 64 20 62 | text pr|oduced b|
|00002130| 79 20 74 65 78 74 6f 27 | 69 6e 67 20 61 20 75 75 |y texto'|ing a uu|
|00002140| 65 6e 63 6f 64 65 64 20 | 66 69 6c 65 20 63 61 6e |encoded |file can|
|00002150| 20 62 65 20 5f 72 65 61 | 6c 6c 79 5f 20 72 65 70 | be _rea|lly_ rep|
|00002160| 65 74 69 74 69 76 65 2e | 0a 20 20 20 54 68 65 20 |etitive.|. The |
|00002170| 36 34 2d 77 6f 72 64 20 | 64 69 63 74 69 6f 6e 61 |64-word |dictiona|
|00002180| 72 69 65 73 20 74 68 69 | 6e 67 20 76 73 2e 20 74 |ries thi|ng vs. t|
|00002190| 68 65 20 34 30 39 36 2d | 77 6f 72 64 20 6f 6e 65 |he 4096-|word one|
|000021a0| 73 2c 20 61 73 20 6d 65 | 6e 74 69 6f 6e 65 64 20 |s, as me|ntioned |
|000021b0| 61 62 6f 76 65 2e 0a 20 | 20 20 54 65 78 74 6f 20 |above.. | Texto |
|000021c0| 69 73 20 61 20 64 6f 72 | 6b 79 20 6e 61 6d 65 2c |is a dor|ky name,|
|000021d0| 20 62 75 74 20 69 74 20 | 73 6f 72 74 6f 66 20 72 | but it |sortof r|
|000021e0| 68 79 6d 65 73 20 77 69 | 74 68 20 73 74 65 67 6f |hymes wi|th stego|
|000021f0| 2e 0a 20 20 20 50 6c 65 | 61 73 65 20 72 65 70 6f |.. Ple|ase repo|
|00002200| 72 74 20 61 6e 79 20 6f | 74 68 65 72 20 62 75 67 |rt any o|ther bug|
|00002210| 73 20 6f 72 20 66 69 78 | 65 73 20 74 6f 20 6b 6d |s or fix|es to km|
|00002220| 61 68 65 72 40 75 63 73 | 64 2e 65 64 75 0a 0a 4c |aher@ucs|d.edu..L|
|00002230| 49 43 45 4e 53 45 0a 2d | 2d 2d 2d 2d 2d 2d 0a 0a |ICENSE.-|------..|
|00002240| 20 20 20 43 6f 70 79 69 | 6e 67 2c 20 6d 6f 64 69 | Copyi|ng, modi|
|00002250| 66 69 63 61 74 69 6f 6e | 73 2c 20 69 6d 70 72 6f |fication|s, impro|
|00002260| 76 65 6d 65 6e 74 73 2c | 20 65 74 63 2e 20 61 72 |vements,| etc. ar|
|00002270| 65 20 68 69 67 68 6c 79 | 20 65 6e 63 6f 75 72 61 |e highly| encoura|
|00002280| 67 65 64 2c 20 6a 75 73 | 74 0a 20 20 20 6c 65 74 |ged, jus|t. let|
|00002290| 20 6d 65 20 6b 6e 6f 77 | 20 73 6f 20 49 20 63 61 | me know| so I ca|
|000022a0| 6e 20 69 6e 63 6f 72 70 | 6f 72 61 74 65 20 74 68 |n incorp|orate th|
|000022b0| 65 6d 2e 0a 0a 20 20 20 | 41 6c 6c 20 72 69 74 65 |em... |All rite|
|000022c0| 73 20 72 65 76 65 72 73 | 65 64 2e 0a 0a 41 55 54 |s revers|ed...AUT|
|000022d0| 48 4f 52 0a 2d 2d 2d 2d | 2d 2d 0a 20 20 20 0a 20 |HOR.----|--. . |
|000022e0| 20 20 4b 65 76 69 6e 20 | 4d 61 68 65 72 0a 20 20 | Kevin |Maher. |
|000022f0| 20 6b 6d 61 68 65 72 40 | 75 63 73 64 2e 65 64 75 | kmaher@|ucsd.edu|
|00002300| 0a 20 20 20 55 6e 64 65 | 72 77 61 72 65 20 53 6f |. Unde|rware So|
|00002310| 66 74 77 61 72 65 20 50 | 72 6f 64 75 63 74 69 6f |ftware P|roductio|
|00002320| 6e 20 4c 74 64 2e 20 49 | 6e 63 2e 20 65 74 63 2e |n Ltd. I|nc. etc.|
|00002330| 20 0a 20 20 20 22 43 6f | 76 65 72 69 6e 67 20 79 | . "Co|vering y|
|00002340| 6f 75 72 20 61 73 73 20 | 73 69 6e 63 65 20 31 39 |our ass |since 19|
|00002350| 38 31 22 0a 0a 72 65 61 | 6c 6c 79 5f 20 72 65 70 |81"..rea|lly_ rep|
|00002360| 65 74 69 74 69 76 65 2e | 0a 20 20 20 54 68 65 20 |etitive.|. The |
|00002370| 36 34 2d 77 6f 72 64 20 | 64 69 63 74 69 6f 6e 61 |64-word |dictiona|
|00002380| 72 69 65 73 20 74 68 69 | 6e 67 20 76 73 2e 20 74 |ries thi|ng vs. t|
|00002390| 68 65 20 34 30 39 36 2d | 77 6f 72 64 20 6f 6e 65 |he 4096-|word one|
|000023a0| 73 2c 20 61 73 20 6d 65 | 6e 74 69 6f 6e 65 64 20 |s, as me|ntioned |
|000023b0| 61 62 6f 76 65 2e 0a 20 | 20 20 54 65 78 74 6f 20 |above.. | Texto |
|000023c0| 69 73 20 61 20 64 6f 72 | 6b 79 20 6e 61 6d 65 2c |is a dor|ky name,|
|000023d0| 20 62 75 74 20 69 74 20 | 73 6f 72 74 6f 66 20 72 | but it |sortof r|
|000023e0| 68 79 6d 65 73 20 77 69 | 74 68 20 73 74 65 67 6f |hymes wi|th stego|
|000023f0| 2e 0a 20 20 20 50 6c 65 | 61 73 65 20 72 65 70 6f |.. Ple|ase repo|
|00002400| 69 6e 69 74 5f 77 6f 72 | 64 73 2e 63 00 00 00 00 |init_wor|ds.c....|
|00002410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 30 30 30 36 | 34 34 20 00 30 30 32 31 |....0006|44 .0021|
|00002470| 32 36 20 00 30 30 30 30 | 32 34 20 00 30 30 30 30 |26 .0000|24 .0000|
|00002480| 30 30 30 33 31 33 31 20 | 30 35 37 32 34 36 37 31 |0003131 |05724671|
|00002490| 30 33 36 20 30 31 32 33 | 31 36 00 20 30 00 00 00 |036 0123|16. 0...|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 75 73 74 61 72 00 30 | 30 6d 61 68 65 72 00 00 |.ustar.0|0maher..|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 00 00 00 |........|.user...|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 78 74 6f 2e |#include| "texto.|
|00002610| 68 22 0a 0a 76 6f 69 64 | 20 69 6e 69 74 5f 77 6f |h"..void| init_wo|
|00002620| 72 64 73 28 29 0a 7b 0a | 0a 20 20 20 69 6e 74 20 |rds().{.|. int |
|00002630| 69 2c 20 6a 2c 20 6b 3b | 0a 09 63 68 61 72 20 77 |i, j, k;|..char w|
|00002640| 68 61 74 5b 32 30 5d 3b | 0a 09 69 6e 74 20 70 61 |hat[20];|..int pa|
|00002650| 72 74 6f 66 73 3b 0a 09 | 46 49 4c 45 2a 20 77 6f |rtofs;..|FILE* wo|
|00002660| 72 64 73 3b 0a 09 63 68 | 61 72 20 63 3b 0a 0a 09 |rds;..ch|ar c;...|
|00002670| 73 74 72 75 63 74 20 65 | 6e 74 72 79 20 74 65 6d |struct e|ntry tem|
|00002680| 70 3b 0a 0a 09 2f 2a 0a | 20 20 20 66 70 72 69 6e |p;.../*.| fprin|
|00002690| 74 66 28 73 74 64 65 72 | 72 2c 20 22 49 6e 69 74 |tf(stder|r, "Init|
|000026a0| 69 61 6c 69 7a 69 6e 67 | 20 77 6f 72 64 73 5c 6e |ializing| words\n|
|000026b0| 22 29 3b 0a 09 2a 2f 0a | 0a 20 20 20 77 6f 72 64 |");..*/.|. word|
|000026c0| 73 20 3d 20 66 6f 70 65 | 6e 28 22 77 6f 72 64 73 |s = fope|n("words|
|000026d0| 22 2c 20 22 72 22 29 3b | 0a 20 20 20 69 66 20 28 |", "r");|. if (|
|000026e0| 77 6f 72 64 73 20 3d 3d | 20 4e 55 4c 4c 29 20 7b |words ==| NULL) {|
|000026f0| 0a 09 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |...fprin|tf(stder|
|00002700| 72 2c 20 22 45 72 72 6f | 72 20 6f 70 65 6e 69 6e |r, "Erro|r openin|
|00002710| 67 20 77 6f 72 64 66 69 | 6c 65 2e 20 20 45 78 69 |g wordfi|le. Exi|
|00002720| 74 69 6e 67 2e 2e 2e 5c | 6e 22 29 3b 0a 09 09 65 |ting...\|n");...e|
|00002730| 78 69 74 28 31 29 3b 0a | 09 09 7d 0a 0a 09 68 74 |xit(1);.|..}...ht|
|00002740| 61 62 6c 65 20 3d 20 4f | 48 54 5f 43 72 65 61 74 |able = O|HT_Creat|
|00002750| 65 28 20 73 69 7a 65 6f | 66 28 73 74 72 75 63 74 |e( sizeo|f(struct|
|00002760| 20 65 6e 74 72 79 29 2c | 20 4e 55 4d 57 4f 52 44 | entry),| NUMWORD|
|00002770| 53 2a 35 2c 20 0a 09 09 | 09 09 09 09 09 09 28 69 |S*5, ...|......(i|
|00002780| 6e 74 20 28 2a 29 28 76 | 6f 69 64 20 2a 2c 20 76 |nt (*)(v|oid *, v|
|00002790| 6f 69 64 20 2a 29 29 20 | 63 6f 6d 70 5f 65 6e 74 |oid *)) |comp_ent|
|000027a0| 72 69 65 73 2c 0a 09 09 | 09 09 09 09 09 09 28 69 |ries,...|......(i|
|000027b0| 6e 74 20 28 2a 29 28 76 | 6f 69 64 20 2a 29 29 20 |nt (*)(v|oid *)) |
|000027c0| 67 65 74 5f 69 6e 64 65 | 78 2c 0a 09 09 09 09 09 |get_inde|x,......|
|000027d0| 09 09 09 28 76 6f 69 64 | 20 28 2a 29 28 76 6f 69 |...(void| (*)(voi|
|000027e0| 64 20 2a 29 29 20 70 72 | 69 6e 74 5f 65 6e 74 72 |d *)) pr|int_entr|
|000027f0| 79 20 29 3b 0a 09 0a 09 | 77 68 69 6c 65 20 28 20 |y );....|while ( |
|00002800| 28 63 20 3d 20 67 65 74 | 63 28 77 6f 72 64 73 29 |(c = get|c(words)|
|00002810| 29 20 21 3d 20 28 63 68 | 61 72 29 45 4f 46 20 29 |) != (ch|ar)EOF )|
|00002820| 20 7b 0a 0a 09 09 69 66 | 20 28 69 73 73 70 61 63 | {....if| (isspac|
|00002830| 65 28 63 29 29 20 63 6f | 6e 74 69 6e 75 65 3b 0a |e(c)) co|ntinue;.|
|00002840| 0a 09 09 69 66 20 28 20 | 63 20 3d 3d 20 27 23 27 |...if ( |c == '#'|
|00002850| 20 29 20 7b 0a 09 09 09 | 66 73 63 61 6e 66 28 77 | ) {....|fscanf(w|
|00002860| 6f 72 64 73 2c 20 22 25 | 73 22 2c 20 77 68 61 74 |ords, "%|s", what|
|00002870| 29 3b 0a 0a 09 09 09 69 | 66 20 28 20 73 74 72 63 |);.....i|f ( strc|
|00002880| 6d 70 28 77 68 61 74 2c | 20 22 54 68 69 6e 67 73 |mp(what,| "Things|
|00002890| 22 29 20 3d 3d 20 30 20 | 29 20 7b 0a 09 09 09 09 |") == 0 |) {.....|
|000028a0| 70 61 72 74 6f 66 73 20 | 3d 20 54 48 49 4e 47 3b |partofs |= THING;|
|000028b0| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|000028c0| 66 20 28 20 73 74 72 63 | 6d 70 28 77 68 61 74 2c |f ( strc|mp(what,|
|000028d0| 20 22 56 65 72 62 73 22 | 29 20 3d 3d 20 30 20 29 | "Verbs"|) == 0 )|
|000028e0| 20 7b 0a 09 09 09 09 70 | 61 72 74 6f 66 73 20 3d | {.....p|artofs =|
|000028f0| 20 56 45 52 42 3b 0a 09 | 09 09 09 7d 0a 09 09 09 | VERB;..|...}....|
|00002900| 65 6c 73 65 20 69 66 20 | 28 20 73 74 72 63 6d 70 |else if |( strcmp|
|00002910| 28 77 68 61 74 2c 20 22 | 41 64 76 65 72 62 73 22 |(what, "|Adverbs"|
|00002920| 29 20 3d 3d 20 30 20 29 | 20 7b 0a 09 09 09 09 70 |) == 0 )| {.....p|
|00002930| 61 72 74 6f 66 73 20 3d | 20 41 44 56 45 52 42 3b |artofs =| ADVERB;|
|00002940| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|00002950| 66 20 28 20 73 74 72 63 | 6d 70 28 77 68 61 74 2c |f ( strc|mp(what,|
|00002960| 20 22 41 64 6a 65 63 74 | 69 76 65 73 22 29 20 3d | "Adject|ives") =|
|00002970| 3d 20 30 20 29 20 7b 0a | 09 09 09 09 70 61 72 74 |= 0 ) {.|....part|
|00002980| 6f 66 73 20 3d 20 41 44 | 4a 45 43 54 49 56 45 3b |ofs = AD|JECTIVE;|
|00002990| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|000029a0| 66 20 28 20 73 74 72 63 | 6d 70 28 77 68 61 74 2c |f ( strc|mp(what,|
|000029b0| 20 22 50 6c 61 63 65 73 | 22 29 20 3d 3d 20 30 20 | "Places|") == 0 |
|000029c0| 29 20 7b 0a 09 09 09 09 | 70 61 72 74 6f 66 73 20 |) {.....|partofs |
|000029d0| 3d 20 50 4c 41 43 45 3b | 0a 09 09 09 09 7d 0a 09 |= PLACE;|.....}..|
|000029e0| 09 09 65 6c 73 65 20 7b | 0a 09 09 09 09 70 72 69 |..else {|.....pri|
|000029f0| 6e 74 66 28 22 49 67 6e | 6f 72 65 64 2e 5c 6e 22 |ntf("Ign|ored.\n"|
|00002a00| 29 3b 0a 09 09 09 09 7d | 0a 09 09 09 66 6f 72 20 |);.....}|....for |
|00002a10| 28 20 69 3d 30 3b 20 69 | 3c 4e 55 4d 57 4f 52 44 |( i=0; i|<NUMWORD|
|00002a20| 53 3b 20 69 2b 2b 20 29 | 20 7b 0a 09 09 09 09 66 |S; i++ )| {.....f|
|00002a30| 73 63 61 6e 66 28 77 6f | 72 64 73 2c 20 22 25 73 |scanf(wo|rds, "%s|
|00002a40| 22 2c 20 74 65 6d 70 2e | 77 6f 72 64 29 3b 0a 09 |", temp.|word);..|
|00002a50| 09 09 09 74 65 6d 70 2e | 70 6f 73 20 20 20 3d 20 |...temp.|pos = |
|00002a60| 70 61 72 74 6f 66 73 3b | 0a 09 09 09 09 74 65 6d |partofs;|.....tem|
|00002a70| 70 2e 6c 65 6e 67 74 68 | 20 20 20 3d 20 73 74 72 |p.length| = str|
|00002a80| 6c 65 6e 28 74 65 6d 70 | 2e 77 6f 72 64 29 3b 0a |len(temp|.word);.|
|00002a90| 09 09 09 09 74 65 6d 70 | 2e 69 6e 64 65 78 20 3d |....temp|.index =|
|00002aa0| 20 69 3b 0a 09 09 09 09 | 69 66 20 28 20 4f 48 54 | i;.....|if ( OHT|
|00002ab0| 5f 49 6e 73 65 72 74 28 | 20 28 76 6f 69 64 20 2a |_Insert(| (void *|
|00002ac0| 29 26 74 65 6d 70 2c 20 | 68 74 61 62 6c 65 20 29 |)&temp, |htable )|
|00002ad0| 20 3d 3d 20 4f 48 54 5f | 46 41 49 4c 55 52 45 20 | == OHT_|FAILURE |
|00002ae0| 29 20 7b 0a 09 09 09 09 | 09 66 70 72 69 6e 74 66 |) {.....|.fprintf|
|00002af0| 28 73 74 64 65 72 72 2c | 20 22 43 6f 75 6c 64 20 |(stderr,| "Could |
|00002b00| 6e 6f 74 20 69 6e 73 65 | 72 74 20 25 73 2e 5c 6e |not inse|rt %s.\n|
|00002b10| 22 2c 20 74 65 6d 70 2e | 77 6f 72 64 29 3b 0a 09 |", temp.|word);..|
|00002b20| 09 09 09 09 7d 0a 09 09 | 09 09 73 70 72 69 6e 74 |....}...|..sprint|
|00002b30| 66 28 64 69 63 74 5b 70 | 61 72 74 6f 66 73 5d 5b |f(dict[p|artofs][|
|00002b40| 69 5d 2c 20 22 25 73 22 | 2c 20 74 65 6d 70 2e 77 |i], "%s"|, temp.w|
|00002b50| 6f 72 64 29 3b 0a 09 09 | 09 09 7d 0a 09 09 09 7d |ord);...|..}....}|
|00002b60| 0a 0a 09 09 65 6c 73 65 | 20 69 66 20 28 69 73 61 |....else| if (isa|
|00002b70| 6c 70 68 61 28 63 29 29 | 20 7b 09 09 2f 2a 20 4e |lpha(c))| {../* N|
|00002b80| 6f 74 20 61 20 63 6f 6d | 6d 65 6e 74 20 2a 2f 0a |ot a com|ment */.|
|00002b90| 20 20 20 20 20 20 09 7d | 0a 20 20 20 20 20 20 7d | .}|. }|
|00002ba0| 0a 0a 2f 2a 0a 66 70 72 | 69 6e 74 66 28 73 74 64 |../*.fpr|intf(std|
|00002bb0| 65 72 72 2c 20 22 46 69 | 6e 69 73 68 65 64 20 72 |err, "Fi|nished r|
|00002bc0| 65 61 64 69 6e 67 20 77 | 6f 72 64 73 5c 6e 22 29 |eading w|ords\n")|
|00002bd0| 3b 0a 4f 48 54 5f 44 75 | 6d 70 28 20 68 74 61 62 |;.OHT_Du|mp( htab|
|00002be0| 6c 65 20 29 3b 0a 2a 2f | 0a 0a 6b 20 3d 20 66 63 |le );.*/|..k = fc|
|00002bf0| 6c 6f 73 65 28 77 6f 72 | 64 73 29 3b 0a 69 66 20 |lose(wor|ds);.if |
|00002c00| 28 6b 20 3d 3d 20 45 4f | 46 29 20 7b 0a 09 66 70 |(k == EO|F) {..fp|
|00002c10| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 45 |rintf(st|derr, "E|
|00002c20| 72 72 6f 72 20 63 6c 6f | 73 69 6e 67 20 77 6f 72 |rror clo|sing wor|
|00002c30| 64 66 69 6c 65 2e 20 20 | 45 78 69 74 69 6e 67 2e |dfile. |Exiting.|
|00002c40| 2e 2e 5c 6e 22 29 3b 0a | 09 65 78 69 74 28 31 29 |..\n");.|.exit(1)|
|00002c50| 3b 0a 09 7d 0a 0a 7d 0a | 0a 6f 73 20 20 20 3d 20 |;..}..}.|.os = |
|00002c60| 70 61 72 74 6f 66 73 3b | 0a 09 09 09 09 74 65 6d |partofs;|.....tem|
|00002c70| 70 2e 6c 65 6e 67 74 68 | 20 20 20 3d 20 73 74 72 |p.length| = str|
|00002c80| 6c 65 6e 28 74 65 6d 70 | 2e 77 6f 72 64 29 3b 0a |len(temp|.word);.|
|00002c90| 09 09 09 09 74 65 6d 70 | 2e 69 6e 64 65 78 20 3d |....temp|.index =|
|00002ca0| 20 69 3b 0a 09 09 09 09 | 69 66 20 28 20 4f 48 54 | i;.....|if ( OHT|
|00002cb0| 5f 49 6e 73 65 72 74 28 | 20 28 76 6f 69 64 20 2a |_Insert(| (void *|
|00002cc0| 29 26 74 65 6d 70 2c 20 | 68 74 61 62 6c 65 20 29 |)&temp, |htable )|
|00002cd0| 20 3d 3d 20 4f 48 54 5f | 46 41 49 4c 55 52 45 20 | == OHT_|FAILURE |
|00002ce0| 29 20 7b 0a 09 09 09 09 | 09 66 70 72 69 6e 74 66 |) {.....|.fprintf|
|00002cf0| 28 73 74 64 65 72 72 2c | 20 22 43 6f 75 6c 64 20 |(stderr,| "Could |
|00002d00| 6e 6f 74 20 69 6e 73 65 | 72 74 20 25 73 2e 5c 6e |not inse|rt %s.\n|
|00002d10| 22 2c 20 74 65 6d 70 2e | 77 6f 72 64 29 3b 0a 09 |", temp.|word);..|
|00002d20| 09 09 09 09 7d 0a 09 09 | 09 09 73 70 72 69 6e 74 |....}...|..sprint|
|00002d30| 66 28 64 69 63 74 5b 70 | 61 72 74 6f 66 73 5d 5b |f(dict[p|artofs][|
|00002d40| 69 5d 2c 20 22 25 73 22 | 2c 20 74 65 6d 70 2e 77 |i], "%s"|, temp.w|
|00002d50| 6f 72 64 29 3b 0a 09 09 | 09 09 7d 0a 09 09 09 7d |ord);...|..}....}|
|00002d60| 0a 0a 09 09 65 6c 73 65 | 20 69 66 20 28 69 73 61 |....else| if (isa|
|00002d70| 6c 70 68 61 28 63 29 29 | 20 7b 09 09 2f 2a 20 4e |lpha(c))| {../* N|
|00002d80| 6f 74 20 61 20 63 6f 6d | 6d 65 6e 74 20 2a 2f 0a |ot a com|ment */.|
|00002d90| 20 20 20 20 20 20 09 7d | 0a 20 20 20 20 20 20 7d | .}|. }|
|00002da0| 0a 0a 2f 2a 0a 66 70 72 | 69 6e 74 66 28 73 74 64 |../*.fpr|intf(std|
|00002db0| 65 72 72 2c 20 22 46 69 | 6e 69 73 68 65 64 20 72 |err, "Fi|nished r|
|00002dc0| 65 61 64 69 6e 67 20 77 | 6f 72 64 73 5c 6e 22 29 |eading w|ords\n")|
|00002dd0| 3b 0a 4f 48 54 5f 44 75 | 6d 70 28 20 68 74 61 62 |;.OHT_Du|mp( htab|
|00002de0| 6c 65 20 29 3b 0a 2a 2f | 0a 0a 6b 20 3d 20 66 63 |le );.*/|..k = fc|
|00002df0| 6c 6f 73 65 28 77 6f 72 | 64 73 29 3b 0a 69 66 20 |lose(wor|ds);.if |
|00002e00| 6d 61 69 6e 2e 63 00 00 | 00 00 00 00 00 00 00 00 |main.c..|........|
|00002e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 30 30 30 36 | 34 34 20 00 30 30 32 31 |....0006|44 .0021|
|00002e70| 32 36 20 00 30 30 30 30 | 32 34 20 00 30 30 30 30 |26 .0000|24 .0000|
|00002e80| 30 30 32 36 36 35 35 20 | 30 35 37 32 34 36 37 31 |0026655 |05724671|
|00002e90| 32 30 36 20 30 31 31 31 | 30 30 00 20 30 00 00 00 |206 0111|00. 0...|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 75 73 74 61 72 00 30 | 30 6d 61 68 65 72 00 00 |.ustar.0|0maher..|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 00 00 00 |........|.user...|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 78 74 6f 2e |#include| "texto.|
|00003010| 68 22 0a 0a 0a 6d 61 69 | 6e 28 20 61 72 67 63 2c |h"...mai|n( argc,|
|00003020| 20 61 72 67 76 20 29 0a | 69 6e 74 20 61 72 67 63 | argv ).|int argc|
|00003030| 3b 0a 63 68 61 72 20 2a | 61 72 67 76 5b 5d 3b 0a |;.char *|argv[];.|
|00003040| 7b 0a 0a 69 6e 74 20 69 | 2c 20 6a 2c 20 6b 3b 0a |{..int i|, j, k;.|
|00003050| 46 49 4c 45 20 2a 72 65 | 73 75 6c 74 3b 0a 63 68 |FILE *re|sult;.ch|
|00003060| 61 72 20 66 69 6c 65 6e | 61 6d 65 5b 32 30 5d 3b |ar filen|ame[20];|
|00003070| 0a 0a 69 6e 74 20 70 67 | 70 6f 75 74 20 3d 20 30 |..int pg|pout = 0|
|00003080| 3b 0a 69 6e 74 20 75 75 | 6f 75 74 20 3d 20 30 3b |;.int uu|out = 0;|
|00003090| 0a 0a 69 66 20 28 61 72 | 67 63 20 3c 3d 20 31 29 |..if (ar|gc <= 1)|
|000030a0| 20 7b 0a 20 20 20 66 70 | 72 69 6e 74 66 28 73 74 | {. fp|rintf(st|
|000030b0| 64 65 72 72 2c 20 22 5c | 6e 55 73 61 67 65 3a 20 |derr, "\|nUsage: |
|000030c0| 74 65 78 74 6f 20 5b 2d | 70 7c 2d 75 5d 20 6d 65 |texto [-|p|-u] me|
|000030d0| 73 73 61 67 65 20 5c 6e | 5c 6e 22 29 3b 0a 20 20 |ssage \n|\n");. |
|000030e0| 20 65 78 69 74 28 31 29 | 3b 0a 20 20 20 7d 0a 65 | exit(1)|;. }.e|
|000030f0| 6c 73 65 20 7b 0a 0a 09 | 69 20 3d 20 31 3b 0a 09 |lse {...|i = 1;..|
|00003100| 77 68 69 6c 65 20 28 61 | 72 67 76 5b 69 5d 20 21 |while (a|rgv[i] !|
|00003110| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 0a 09 09 69 66 20 |= NULL) |{....if |
|00003120| 28 20 73 74 72 6e 63 6d | 70 28 61 72 67 76 5b 69 |( strncm|p(argv[i|
|00003130| 5d 2c 20 22 2d 64 22 2c | 20 32 29 20 3d 3d 20 30 |], "-d",| 2) == 0|
|00003140| 20 29 20 7b 0a 09 09 09 | 44 65 62 75 67 20 3d 20 | ) {....|Debug = |
|00003150| 31 3b 20 0a 09 09 09 7d | 0a 09 09 65 6c 73 65 20 |1; ....}|...else |
|00003160| 69 66 20 28 20 73 74 72 | 6e 63 6d 70 28 61 72 67 |if ( str|ncmp(arg|
|00003170| 76 5b 69 5d 2c 20 22 2d | 70 22 2c 20 32 29 20 3d |v[i], "-|p", 2) =|
|00003180| 3d 20 30 20 29 20 7b 0a | 09 09 09 70 67 70 6f 75 |= 0 ) {.|...pgpou|
|00003190| 74 20 3d 20 31 3b 20 0a | 09 09 09 7d 0a 09 09 65 |t = 1; .|...}...e|
|000031a0| 6c 73 65 20 69 66 20 28 | 20 73 74 72 6e 63 6d 70 |lse if (| strncmp|
|000031b0| 28 61 72 67 76 5b 69 5d | 2c 20 22 2d 75 22 2c 20 |(argv[i]|, "-u", |
|000031c0| 32 29 20 3d 3d 20 30 20 | 29 20 7b 0a 09 09 09 75 |2) == 0 |) {....u|
|000031d0| 75 6f 75 74 20 3d 20 31 | 3b 0a 09 09 09 7d 0a 09 |uout = 1|;....}..|
|000031e0| 09 65 6c 73 65 20 7b 0a | 09 09 09 73 74 72 63 70 |.else {.|...strcp|
|000031f0| 79 28 66 69 6c 65 6e 61 | 6d 65 2c 20 61 72 67 76 |y(filena|me, argv|
|00003200| 5b 69 5d 29 3b 0a 09 09 | 09 6d 65 73 73 61 67 65 |[i]);...|.message|
|00003210| 20 3d 20 66 6f 70 65 6e | 28 66 69 6c 65 6e 61 6d | = fopen|(filenam|
|00003220| 65 2c 20 22 72 22 29 3b | 0a 09 09 09 69 66 20 28 |e, "r");|....if (|
|00003230| 6d 65 73 73 61 67 65 20 | 3d 3d 20 4e 55 4c 4c 29 |message |== NULL)|
|00003240| 20 7b 0a 09 09 09 09 66 | 70 72 69 6e 74 66 28 73 | {.....f|printf(s|
|00003250| 74 64 65 72 72 2c 20 22 | 45 72 72 6f 72 20 6f 70 |tderr, "|Error op|
|00003260| 65 6e 69 6e 67 20 25 73 | 2e 20 20 45 78 69 74 69 |ening %s|. Exiti|
|00003270| 6e 67 2e 2e 2e 5c 6e 22 | 2c 20 66 69 6c 65 6e 61 |ng...\n"|, filena|
|00003280| 6d 65 29 3b 0a 09 09 09 | 09 65 78 69 74 28 31 29 |me);....|.exit(1)|
|00003290| 3b 0a 09 09 09 09 7d 0a | 09 09 09 7d 0a 0a 09 09 |;.....}.|...}....|
|000032a0| 69 2b 2b 3b 0a 09 09 7d | 0a 0a 20 20 20 7d 0a 0a |i++;...}|.. }..|
|000032b0| 73 74 72 75 63 74 73 20 | 3d 20 66 6f 70 65 6e 28 |structs |= fopen(|
|000032c0| 22 73 74 72 75 63 74 73 | 22 2c 20 22 72 22 29 3b |"structs|", "r");|
|000032d0| 0a 69 66 20 28 6d 65 73 | 73 61 67 65 20 3d 3d 20 |.if (mes|sage == |
|000032e0| 4e 55 4c 4c 29 20 7b 0a | 09 66 70 72 69 6e 74 66 |NULL) {.|.fprintf|
|000032f0| 28 73 74 64 65 72 72 2c | 20 22 45 72 72 6f 72 20 |(stderr,| "Error |
|00003300| 6f 70 65 6e 69 6e 67 20 | 73 74 72 75 63 74 66 69 |opening |structfi|
|00003310| 6c 65 2e 20 20 45 78 69 | 74 69 6e 67 2e 2e 2e 5c |le. Exi|ting...\|
|00003320| 6e 22 29 3b 0a 09 65 78 | 69 74 28 31 29 3b 0a 09 |n");..ex|it(1);..|
|00003330| 7d 0a 0a 69 6e 69 74 5f | 77 6f 72 64 73 28 29 3b |}..init_|words();|
|00003340| 0a 0a 69 66 20 28 70 67 | 70 6f 75 74 29 20 7b 0a |..if (pg|pout) {.|
|00003350| 09 74 78 74 5f 74 6f 5f | 70 67 70 28 29 3b 0a 09 |.txt_to_|pgp();..|
|00003360| 7d 0a 65 6c 73 65 20 69 | 66 20 28 75 75 6f 75 74 |}.else i|f (uuout|
|00003370| 29 20 7b 0a 09 74 78 74 | 5f 74 6f 5f 75 75 28 29 |) {..txt|_to_uu()|
|00003380| 3b 0a 09 7d 0a 65 6c 73 | 65 20 7b 0a 09 6d 73 67 |;..}.els|e {..msg|
|00003390| 5f 74 6f 5f 74 78 74 28 | 29 3b 0a 09 7d 0a 0a 6b |_to_txt(|);..}..k|
|000033a0| 20 3d 20 66 63 6c 6f 73 | 65 28 6d 65 73 73 61 67 | = fclos|e(messag|
|000033b0| 65 29 3b 0a 69 66 20 28 | 6b 20 3d 3d 20 45 4f 46 |e);.if (|k == EOF|
|000033c0| 29 20 7b 0a 09 66 70 72 | 69 6e 74 66 28 73 74 64 |) {..fpr|intf(std|
|000033d0| 65 72 72 2c 20 22 45 72 | 72 6f 72 20 63 6c 6f 73 |err, "Er|ror clos|
|000033e0| 69 6e 67 20 25 73 2e 20 | 20 45 78 69 74 69 6e 67 |ing %s. | Exiting|
|000033f0| 2e 2e 2e 5c 6e 22 2c 20 | 66 69 6c 65 6e 61 6d 65 |...\n", |filename|
|00003400| 29 3b 0a 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |);..exit|(1);..}.|
|00003410| 0a 6b 20 3d 20 66 63 6c | 6f 73 65 28 73 74 72 75 |.k = fcl|ose(stru|
|00003420| 63 74 73 29 3b 0a 69 66 | 20 28 6b 20 3d 3d 20 45 |cts);.if| (k == E|
|00003430| 4f 46 29 20 7b 0a 09 66 | 70 72 69 6e 74 66 28 73 |OF) {..f|printf(s|
|00003440| 74 64 65 72 72 2c 20 22 | 45 72 72 6f 72 20 63 6c |tderr, "|Error cl|
|00003450| 6f 73 69 6e 67 20 73 74 | 72 75 63 74 66 69 6c 65 |osing st|ructfile|
|00003460| 2e 20 20 45 78 69 74 69 | 6e 67 2e 2e 2e 5c 6e 22 |. Exiti|ng...\n"|
|00003470| 29 3b 0a 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |);..exit|(1);..}.|
|00003480| 0a 4f 48 54 5f 44 65 73 | 74 72 6f 79 28 20 68 74 |.OHT_Des|troy( ht|
|00003490| 61 62 6c 65 20 29 3b 0a | 0a 65 78 69 74 28 30 29 |able );.|.exit(0)|
|000034a0| 3b 0a 0a 7d 0a 0a 0a 0a | 76 6f 69 64 20 6d 73 67 |;..}....|void msg|
|000034b0| 5f 74 6f 5f 74 78 74 28 | 29 0a 7b 0a 63 68 61 72 |_to_txt(|).{.char|
|000034c0| 20 6f 72 69 67 3b 0a 63 | 68 61 72 20 74 65 6d 70 | orig;.c|har temp|
|000034d0| 5b 38 30 5d 3b 0a 0a 77 | 68 69 6c 65 20 28 20 28 |[80];..w|hile ( (|
|000034e0| 6f 72 69 67 3d 67 65 74 | 63 28 6d 65 73 73 61 67 |orig=get|c(messag|
|000034f0| 65 29 29 20 21 3d 20 27 | 42 27 20 26 26 20 6f 72 |e)) != '|B' && or|
|00003500| 69 67 20 21 3d 20 27 62 | 27 20 29 20 7b 0a 09 69 |ig != 'b|' ) {..i|
|00003510| 66 20 28 6f 72 69 67 20 | 3d 3d 20 28 63 68 61 72 |f (orig |== (char|
|00003520| 29 45 4f 46 20 29 20 7b | 0a 09 09 70 72 69 6e 74 |)EOF ) {|...print|
|00003530| 66 28 22 5c 6e 45 72 72 | 6f 72 3a 20 6d 65 73 73 |f("\nErr|or: mess|
|00003540| 61 67 65 20 6e 6f 74 20 | 69 6e 20 50 47 50 20 6f |age not |in PGP o|
|00003550| 72 20 75 75 65 6e 63 6f | 64 65 20 66 6f 72 6d 61 |r uuenco|de forma|
|00003560| 74 2e 5c 6e 22 29 3b 0a | 09 09 70 72 69 6e 74 66 |t.\n");.|..printf|
|00003570| 28 22 09 43 6f 75 6c 64 | 20 6e 6f 74 20 66 69 6e |(".Could| not fin|
|00003580| 64 20 5c 22 62 65 67 69 | 6e 5c 22 20 6f 72 20 5c |d \"begi|n\" or \|
|00003590| 22 42 45 47 49 4e 5c 22 | 20 61 74 20 74 6f 70 20 |"BEGIN\"| at top |
|000035a0| 6f 66 20 66 69 6c 65 2e | 5c 6e 5c 6e 22 29 3b 0a |of file.|\n\n");.|
|000035b0| 09 09 65 78 69 74 28 30 | 29 3b 0a 09 09 7d 0a 09 |..exit(0|);...}..|
|000035c0| 2f 2a 20 65 6c 73 65 20 | 64 6f 20 6e 6f 74 68 69 |/* else |do nothi|
|000035d0| 6e 67 20 2a 2f 0a 09 7d | 0a 0a 66 73 63 61 6e 66 |ng */..}|..fscanf|
|000035e0| 28 6d 65 73 73 61 67 65 | 2c 20 22 25 73 22 2c 20 |(message|, "%s", |
|000035f0| 74 65 6d 70 29 3b 0a 0a | 69 66 20 28 20 73 74 72 |temp);..|if ( str|
|00003600| 6e 63 6d 70 28 74 65 6d | 70 2c 20 22 45 47 49 4e |ncmp(tem|p, "EGIN|
|00003610| 22 2c 20 34 29 20 21 3d | 20 30 20 29 20 7b 0a 09 |", 4) !=| 0 ) {..|
|00003620| 69 66 20 28 20 73 74 72 | 6e 63 6d 70 28 74 65 6d |if ( str|ncmp(tem|
|00003630| 70 2c 20 22 65 67 69 6e | 22 2c 20 34 29 20 21 3d |p, "egin|", 4) !=|
|00003640| 20 30 20 29 20 7b 0a 09 | 09 70 72 69 6e 74 66 28 | 0 ) {..|.printf(|
|00003650| 22 5c 6e 45 72 72 6f 72 | 3a 20 6d 65 73 73 61 67 |"\nError|: messag|
|00003660| 65 20 6e 6f 74 20 69 6e | 20 50 47 50 20 6f 72 20 |e not in| PGP or |
|00003670| 75 75 65 6e 63 6f 64 65 | 20 66 6f 72 6d 61 74 2e |uuencode| format.|
|00003680| 5c 6e 22 29 3b 0a 09 09 | 70 72 69 6e 74 66 28 22 |\n");...|printf("|
|00003690| 09 43 6f 75 6c 64 20 6e | 6f 74 20 66 69 6e 64 20 |.Could n|ot find |
|000036a0| 5c 22 62 65 67 69 6e 5c | 22 20 6f 72 20 5c 22 42 |\"begin\|" or \"B|
|000036b0| 45 47 49 4e 5c 22 20 61 | 74 20 74 6f 70 20 6f 66 |EGIN\" a|t top of|
|000036c0| 20 66 69 6c 65 2e 5c 6e | 5c 6e 22 29 3b 0a 09 09 | file.\n|\n");...|
|000036d0| 65 78 69 74 28 30 29 3b | 0a 09 09 7d 0a 09 65 6c |exit(0);|...}..el|
|000036e0| 73 65 20 7b 09 2f 2a 20 | 75 75 65 6e 63 6f 64 65 |se {./* |uuencode|
|000036f0| 64 2c 20 6f 72 20 61 74 | 20 6c 65 61 73 74 20 69 |d, or at| least i|
|00003700| 74 20 73 61 79 73 20 62 | 65 67 69 6e 20 2a 2f 0a |t says b|egin */.|
|00003710| 09 09 75 75 5f 74 6f 5f | 74 78 74 28 29 3b 0a 09 |..uu_to_|txt();..|
|00003720| 09 7d 0a 09 7d 0a 65 6c | 73 65 20 7b 09 2f 2a 20 |.}..}.el|se {./* |
|00003730| 70 67 70 20 61 73 63 69 | 69 2d 61 72 6d 6f 75 72 |pgp asci|i-armour|
|00003740| 2c 20 6f 72 20 61 74 20 | 6c 65 61 73 74 20 69 74 |, or at |least it|
|00003750| 20 73 61 79 73 20 42 45 | 47 49 4e 20 2a 2f 0a 09 | says BE|GIN */..|
|00003760| 70 67 70 5f 74 6f 5f 74 | 78 74 28 29 3b 0a 09 7d |pgp_to_t|xt();..}|
|00003770| 0a 0a 7d 0a 0a 76 6f 69 | 64 20 70 67 70 5f 74 6f |..}..voi|d pgp_to|
|00003780| 5f 74 78 74 28 29 0a 7b | 0a 63 68 61 72 20 6f 72 |_txt().{|.char or|
|00003790| 69 67 2c 20 63 2c 20 6c | 61 73 74 3b 0a 69 6e 74 |ig, c, l|ast;.int|
|000037a0| 20 77 68 61 74 6c 65 6e | 3b 0a 69 6e 74 20 64 6f | whatlen|;.int do|
|000037b0| 6e 65 3b 0a 69 6e 74 20 | 69 2c 20 6a 3b 0a 63 68 |ne;.int |i, j;.ch|
|000037c0| 61 72 20 77 68 61 74 5b | 32 30 5d 3b 0a 63 68 61 |ar what[|20];.cha|
|000037d0| 72 20 74 65 6d 70 5b 38 | 30 5d 3b 0a 69 6e 74 20 |r temp[8|0];.int |
|000037e0| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 3d 20 30 3b 0a |outlinel|en = 0;.|
|000037f0| 69 6e 74 20 69 6e 64 65 | 78 3b 0a 0a 2f 2a 20 0a |int inde|x;../* .|
|00003800| 2a 2a 09 72 65 61 64 20 | 61 6e 64 20 69 67 6e 6f |**.read |and igno|
|00003810| 72 65 20 75 6e 74 69 6c | 20 62 6c 61 6e 6b 20 6c |re until| blank l|
|00003820| 69 6e 65 20 28 32 20 63 | 6f 6e 73 65 63 75 74 69 |ine (2 c|onsecuti|
|00003830| 76 65 20 6e 65 77 6c 69 | 6e 65 73 29 20 0a 2a 2f |ve newli|nes) .*/|
|00003840| 0a 77 68 69 6c 65 20 28 | 20 28 6f 72 69 67 3d 67 |.while (| (orig=g|
|00003850| 65 74 63 28 6d 65 73 73 | 61 67 65 29 29 20 29 20 |etc(mess|age)) ) |
|00003860| 7b 0a 09 69 66 20 28 6f | 72 69 67 20 3d 3d 20 27 |{..if (o|rig == '|
|00003870| 5c 6e 27 29 20 7b 0a 09 | 09 6f 72 69 67 20 3d 20 |\n') {..|.orig = |
|00003880| 67 65 74 63 28 6d 65 73 | 73 61 67 65 29 3b 0a 09 |getc(mes|sage);..|
|00003890| 09 69 66 20 28 6f 72 69 | 67 20 3d 3d 20 27 5c 6e |.if (ori|g == '\n|
|000038a0| 27 29 20 7b 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |') {....|break;..|
|000038b0| 09 09 7d 0a 09 09 65 6c | 73 65 20 7b 0a 09 09 09 |..}...el|se {....|
|000038c0| 2f 2a 0a 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |/*....fp|rintf(st|
|000038d0| 64 65 72 72 2c 20 22 25 | 63 22 2c 20 6f 72 69 67 |derr, "%|c", orig|
|000038e0| 29 3b 0a 09 09 09 2a 2f | 0a 09 09 09 7d 0a 09 09 |);....*/|....}...|
|000038f0| 7d 0a 09 7d 0a 0a 77 68 | 69 6c 65 20 28 20 28 6f |}..}..wh|ile ( (o|
|00003900| 72 69 67 3d 67 65 74 63 | 28 6d 65 73 73 61 67 65 |rig=getc|(message|
|00003910| 29 29 20 21 3d 20 28 63 | 68 61 72 29 45 4f 46 20 |)) != (c|har)EOF |
|00003920| 29 20 7b 0a 0a 09 69 66 | 20 28 69 73 73 70 61 63 |) {...if| (isspac|
|00003930| 65 28 6f 72 69 67 29 29 | 20 63 6f 6e 74 69 6e 75 |e(orig))| continu|
|00003940| 65 3b 09 2f 2a 20 69 67 | 6e 6f 72 65 20 77 68 69 |e;./* ig|nore whi|
|00003950| 74 65 73 70 61 63 65 20 | 2a 2f 0a 0a 09 69 66 20 |tespace |*/...if |
|00003960| 28 69 73 64 69 67 69 74 | 28 6f 72 69 67 29 29 20 |(isdigit|(orig)) |
|00003970| 69 6e 64 65 78 20 3d 20 | 61 74 6f 69 28 26 6f 72 |index = |atoi(&or|
|00003980| 69 67 29 3b 20 20 20 20 | 20 20 20 09 09 2f 2a 20 |ig); | ../* |
|00003990| 20 30 20 2d 20 39 20 20 | 2a 2f 0a 09 65 6c 73 65 | 0 - 9 |*/..else|
|000039a0| 20 69 66 20 28 69 73 6c | 6f 77 65 72 28 6f 72 69 | if (isl|ower(ori|
|000039b0| 67 29 29 20 69 6e 64 65 | 78 20 3d 20 28 69 6e 74 |g)) inde|x = (int|
|000039c0| 29 28 6f 72 69 67 20 2d | 20 38 37 29 3b 20 20 2f |)(orig -| 87); /|
|000039d0| 2a 20 31 30 20 2d 20 33 | 35 20 2a 2f 0a 09 65 6c |* 10 - 3|5 */..el|
|000039e0| 73 65 20 69 66 20 28 69 | 73 75 70 70 65 72 28 6f |se if (i|supper(o|
|000039f0| 72 69 67 29 29 20 69 6e | 64 65 78 20 3d 20 28 69 |rig)) in|dex = (i|
|00003a00| 6e 74 29 28 6f 72 69 67 | 20 2d 20 32 39 29 3b 20 |nt)(orig| - 29); |
|00003a10| 20 2f 2a 20 33 36 20 2d | 20 36 31 20 2a 2f 0a 09 | /* 36 -| 61 */..|
|00003a20| 65 6c 73 65 20 69 66 20 | 28 6f 72 69 67 20 3d 3d |else if |(orig ==|
|00003a30| 20 27 2f 27 29 20 69 6e | 64 65 78 20 3d 20 36 32 | '/') in|dex = 62|
|00003a40| 3b 0a 09 65 6c 73 65 20 | 69 66 20 28 6f 72 69 67 |;..else |if (orig|
|00003a50| 20 3d 3d 20 27 2b 27 29 | 20 69 6e 64 65 78 20 3d | == '+')| index =|
|00003a60| 20 36 33 3b 0a 09 65 6c | 73 65 20 69 66 20 28 6f | 63;..el|se if (o|
|00003a70| 72 69 67 20 3d 3d 20 27 | 3d 27 29 20 69 6e 64 65 |rig == '|=') inde|
|00003a80| 78 20 3d 20 36 34 3b 0a | 09 65 6c 73 65 20 69 66 |x = 64;.|.else if|
|00003a90| 20 28 6f 72 69 67 20 3d | 3d 20 27 2d 27 29 20 62 | (orig =|= '-') b|
|00003aa0| 72 65 61 6b 3b 0a 0a 09 | 64 6f 6e 65 20 3d 20 30 |reak;...|done = 0|
|00003ab0| 3b 0a 0a 09 77 68 69 6c | 65 20 28 20 21 64 6f 6e |;...whil|e ( !don|
|00003ac0| 65 20 29 20 7b 0a 0a 09 | 09 63 3d 67 65 74 63 28 |e ) {...|.c=getc(|
|00003ad0| 73 74 72 75 63 74 73 29 | 3b 0a 09 09 69 66 20 28 |structs)|;...if (|
|00003ae0| 63 20 3d 3d 20 30 78 30 | 61 29 20 63 6f 6e 74 69 |c == 0x0|a) conti|
|00003af0| 6e 75 65 3b 20 2f 2a 20 | 69 67 6e 6f 72 65 20 6e |nue; /* |ignore n|
|00003b00| 65 77 6c 69 6e 65 73 20 | 2a 2f 0a 09 09 09 0a 09 |ewlines |*/......|
|00003b10| 09 69 66 20 28 63 20 3d | 3d 20 28 63 68 61 72 29 |.if (c =|= (char)|
|00003b20| 45 4f 46 20 29 20 7b 0a | 09 09 09 72 65 77 69 6e |EOF ) {.|...rewin|
|00003b30| 64 28 73 74 72 75 63 74 | 73 29 3b 0a 09 09 09 63 |d(struct|s);....c|
|00003b40| 20 3d 20 67 65 74 63 28 | 73 74 72 75 63 74 73 29 | = getc(|structs)|
|00003b50| 3b 0a 09 09 09 7d 0a 0a | 09 09 69 66 20 28 20 63 |;....}..|..if ( c|
|00003b60| 20 3d 3d 20 27 5f 27 20 | 29 20 7b 0a 0a 09 09 09 | == '_' |) {.....|
|00003b70| 66 73 63 61 6e 66 28 73 | 74 72 75 63 74 73 2c 20 |fscanf(s|tructs, |
|00003b80| 22 25 73 22 2c 20 77 68 | 61 74 29 3b 0a 09 09 09 |"%s", wh|at);....|
|00003b90| 64 6f 6e 65 20 3d 20 31 | 3b 0a 0a 09 09 09 69 66 |done = 1|;.....if|
|00003ba0| 20 28 20 73 74 72 6e 63 | 6d 70 28 77 68 61 74 2c | ( strnc|mp(what,|
|00003bb0| 20 22 54 48 49 4e 47 22 | 2c 20 35 29 20 3d 3d 20 | "THING"|, 5) == |
|00003bc0| 30 20 29 20 7b 0a 09 09 | 09 09 70 72 69 6e 74 66 |0 ) {...|..printf|
|00003bd0| 28 22 25 73 22 2c 20 64 | 69 63 74 5b 54 48 49 4e |("%s", d|ict[THIN|
|00003be0| 47 5d 5b 69 6e 64 65 78 | 5d 29 3b 0a 09 09 09 09 |G][index|]);.....|
|00003bf0| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 2b 3d 20 73 74 |outlinel|en += st|
|00003c00| 72 6c 65 6e 28 64 69 63 | 74 5b 54 48 49 4e 47 5d |rlen(dic|t[THING]|
|00003c10| 5b 69 6e 64 65 78 5d 29 | 3b 0a 09 09 09 09 7d 0a |[index])|;.....}.|
|00003c20| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 73 74 72 |...else |if ( str|
|00003c30| 6e 63 6d 70 28 77 68 61 | 74 2c 20 22 56 45 52 42 |ncmp(wha|t, "VERB|
|00003c40| 22 2c 20 34 29 20 3d 3d | 20 30 20 29 20 7b 0a 09 |", 4) ==| 0 ) {..|
|00003c50| 09 09 09 70 72 69 6e 74 | 66 28 22 25 73 22 2c 20 |...print|f("%s", |
|00003c60| 64 69 63 74 5b 56 45 52 | 42 5d 5b 69 6e 64 65 78 |dict[VER|B][index|
|00003c70| 5d 29 3b 0a 09 09 09 09 | 6f 75 74 6c 69 6e 65 6c |]);.....|outlinel|
|00003c80| 65 6e 20 2b 3d 20 73 74 | 72 6c 65 6e 28 64 69 63 |en += st|rlen(dic|
|00003c90| 74 5b 56 45 52 42 5d 5b | 69 6e 64 65 78 5d 29 3b |t[VERB][|index]);|
|00003ca0| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|00003cb0| 66 20 28 20 73 74 72 6e | 63 6d 70 28 77 68 61 74 |f ( strn|cmp(what|
|00003cc0| 2c 20 22 50 4c 41 43 45 | 22 2c 20 35 29 20 3d 3d |, "PLACE|", 5) ==|
|00003cd0| 20 30 20 29 20 7b 0a 09 | 09 09 09 70 72 69 6e 74 | 0 ) {..|...print|
|00003ce0| 66 28 22 25 73 22 2c 20 | 64 69 63 74 5b 50 4c 41 |f("%s", |dict[PLA|
|00003cf0| 43 45 5d 5b 69 6e 64 65 | 78 5d 29 3b 0a 09 09 09 |CE][inde|x]);....|
|00003d00| 09 6f 75 74 6c 69 6e 65 | 6c 65 6e 20 2b 3d 20 73 |.outline|len += s|
|00003d10| 74 72 6c 65 6e 28 64 69 | 63 74 5b 50 4c 41 43 45 |trlen(di|ct[PLACE|
|00003d20| 5d 5b 69 6e 64 65 78 5d | 29 3b 0a 09 09 09 09 7d |][index]|);.....}|
|00003d30| 0a 09 09 09 65 6c 73 65 | 20 69 66 20 28 20 73 74 |....else| if ( st|
|00003d40| 72 6e 63 6d 70 28 77 68 | 61 74 2c 20 22 41 44 4a |rncmp(wh|at, "ADJ|
|00003d50| 45 43 54 49 56 45 22 2c | 20 39 29 20 3d 3d 20 30 |ECTIVE",| 9) == 0|
|00003d60| 20 29 20 7b 0a 09 09 09 | 09 70 72 69 6e 74 66 28 | ) {....|.printf(|
|00003d70| 22 25 73 22 2c 20 64 69 | 63 74 5b 41 44 4a 45 43 |"%s", di|ct[ADJEC|
|00003d80| 54 49 56 45 5d 5b 69 6e | 64 65 78 5d 29 3b 0a 09 |TIVE][in|dex]);..|
|00003d90| 09 09 09 6f 75 74 6c 69 | 6e 65 6c 65 6e 20 2b 3d |...outli|nelen +=|
|00003da0| 20 73 74 72 6c 65 6e 28 | 64 69 63 74 5b 41 44 4a | strlen(|dict[ADJ|
|00003db0| 45 43 54 49 56 45 5d 5b | 69 6e 64 65 78 5d 29 3b |ECTIVE][|index]);|
|00003dc0| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|00003dd0| 66 20 28 20 73 74 72 6e | 63 6d 70 28 77 68 61 74 |f ( strn|cmp(what|
|00003de0| 2c 20 22 41 44 56 45 52 | 42 22 2c 20 36 29 20 3d |, "ADVER|B", 6) =|
|00003df0| 3d 20 30 20 29 20 7b 0a | 09 09 09 09 70 72 69 6e |= 0 ) {.|....prin|
|00003e00| 74 66 28 22 25 73 22 2c | 20 64 69 63 74 5b 41 44 |tf("%s",| dict[AD|
|00003e10| 56 45 52 42 5d 5b 69 6e | 64 65 78 5d 29 3b 0a 09 |VERB][in|dex]);..|
|00003e20| 09 09 09 6f 75 74 6c 69 | 6e 65 6c 65 6e 20 2b 3d |...outli|nelen +=|
|00003e30| 20 73 74 72 6c 65 6e 28 | 64 69 63 74 5b 41 44 56 | strlen(|dict[ADV|
|00003e40| 45 52 42 5d 5b 69 6e 64 | 65 78 5d 29 3b 0a 09 09 |ERB][ind|ex]);...|
|00003e50| 09 09 7d 0a 09 09 09 65 | 6c 73 65 20 7b 0a 09 09 |..}....e|lse {...|
|00003e60| 09 09 70 72 69 6e 74 66 | 28 22 25 73 22 2c 20 77 |..printf|("%s", w|
|00003e70| 68 61 74 29 3b 0a 09 09 | 09 09 6f 75 74 6c 69 6e |hat);...|..outlin|
|00003e80| 65 6c 65 6e 20 2b 3d 20 | 73 74 72 6c 65 6e 28 77 |elen += |strlen(w|
|00003e90| 68 61 74 29 3b 0a 09 09 | 09 09 64 6f 6e 65 20 3d |hat);...|..done =|
|00003ea0| 20 30 3b 0a 09 09 09 09 | 7d 0a 09 09 09 77 68 61 | 0;.....|}....wha|
|00003eb0| 74 6c 65 6e 20 3d 20 73 | 74 72 6c 65 6e 28 77 68 |tlen = s|trlen(wh|
|00003ec0| 61 74 29 3b 0a 09 09 09 | 6c 61 73 74 20 3d 20 77 |at);....|last = w|
|00003ed0| 68 61 74 5b 77 68 61 74 | 6c 65 6e 2d 32 5d 3b 0a |hat[what|len-2];.|
|00003ee0| 09 09 09 69 66 20 28 6c | 61 73 74 20 3d 3d 20 27 |...if (l|ast == '|
|00003ef0| 73 27 29 20 7b 09 2f 2a | 20 63 68 65 63 6b 20 32 |s') {./*| check 2|
|00003f00| 6e 64 20 74 6f 20 6c 61 | 73 74 20 63 68 61 72 20 |nd to la|st char |
|00003f10| 66 6f 72 20 22 73 2e 22 | 20 2a 2f 0a 09 09 09 09 |for "s."| */.....|
|00003f20| 70 75 74 63 68 61 72 28 | 6c 61 73 74 29 3b 0a 09 |putchar(|last);..|
|00003f30| 09 09 09 6f 75 74 6c 69 | 6e 65 6c 65 6e 20 2b 3d |...outli|nelen +=|
|00003f40| 32 3b 0a 09 09 09 09 7d | 0a 09 09 09 65 6c 73 65 |2;.....}|....else|
|00003f50| 20 69 66 20 28 6c 61 73 | 74 20 3d 3d 20 27 67 27 | if (las|t == 'g'|
|00003f60| 29 20 7b 0a 09 09 09 09 | 70 72 69 6e 74 66 28 22 |) {.....|printf("|
|00003f70| 69 6e 67 22 29 3b 0a 09 | 09 09 09 6f 75 74 6c 69 |ing");..|...outli|
|00003f80| 6e 65 6c 65 6e 20 2b 3d | 34 3b 0a 09 09 09 09 7d |nelen +=|4;.....}|
|00003f90| 0a 09 09 09 6c 61 73 74 | 20 3d 20 77 68 61 74 5b |....last| = what[|
|00003fa0| 77 68 61 74 6c 65 6e 2d | 31 5d 3b 09 0a 09 09 09 |whatlen-|1];.....|
|00003fb0| 69 66 20 28 6c 61 73 74 | 20 3d 3d 20 27 2e 27 20 |if (last| == '.' |
|00003fc0| 7c 7c 20 6c 61 73 74 20 | 3d 3d 20 27 3f 27 20 7c ||| last |== '?' ||
|00003fd0| 7c 20 6c 61 73 74 20 3d | 3d 20 27 21 27 29 20 7b || last =|= '!') {|
|00003fe0| 0a 09 09 09 09 70 72 69 | 6e 74 66 28 22 25 63 20 |.....pri|ntf("%c |
|00003ff0| 20 22 2c 20 6c 61 73 74 | 29 3b 0a 09 09 09 09 6f | ", last|);.....o|
|00004000| 75 74 6c 69 6e 65 6c 65 | 6e 20 2b 3d 34 3b 0a 09 |utlinele|n +=4;..|
|00004010| 09 09 09 7d 0a 09 09 09 | 65 6c 73 65 20 69 66 20 |...}....|else if |
|00004020| 28 6c 61 73 74 20 3d 3d | 20 27 2c 27 29 20 7b 0a |(last ==| ',') {.|
|00004030| 09 09 09 09 70 72 69 6e | 74 66 28 22 2c 22 29 3b |....prin|tf(",");|
|00004040| 0a 09 09 09 09 6f 75 74 | 6c 69 6e 65 6c 65 6e 20 |.....out|linelen |
|00004050| 2b 3d 33 3b 0a 09 09 09 | 09 7d 0a 09 09 09 65 6c |+=3;....|.}....el|
|00004060| 73 65 20 69 66 20 28 6c | 61 73 74 20 3d 3d 20 27 |se if (l|ast == '|
|00004070| 73 27 29 20 7b 0a 09 09 | 09 09 70 75 74 63 68 61 |s') {...|..putcha|
|00004080| 72 28 6c 61 73 74 29 3b | 0a 09 09 09 09 6f 75 74 |r(last);|.....out|
|00004090| 6c 69 6e 65 6c 65 6e 20 | 2b 3d 32 3b 0a 09 09 09 |linelen |+=2;....|
|000040a0| 09 7d 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 6c |.}....el|se if (l|
|000040b0| 61 73 74 20 3d 3d 20 27 | 67 27 29 20 7b 0a 09 09 |ast == '|g') {...|
|000040c0| 09 09 70 72 69 6e 74 66 | 28 22 69 6e 67 22 29 3b |..printf|("ing");|
|000040d0| 0a 09 09 09 09 6f 75 74 | 6c 69 6e 65 6c 65 6e 20 |.....out|linelen |
|000040e0| 2b 3d 34 3b 0a 09 09 09 | 09 7d 0a 0a 09 09 09 69 |+=4;....|.}.....i|
|000040f0| 66 20 28 6f 75 74 6c 69 | 6e 65 6c 65 6e 20 3e 3d |f (outli|nelen >=|
|00004100| 20 36 30 29 20 7b 0a 09 | 09 09 09 70 72 69 6e 74 | 60) {..|...print|
|00004110| 66 28 22 5c 6e 22 29 3b | 0a 09 09 09 09 6f 75 74 |f("\n");|.....out|
|00004120| 6c 69 6e 65 6c 65 6e 20 | 3d 20 30 3b 0a 09 09 09 |linelen |= 0;....|
|00004130| 09 69 66 20 28 28 63 20 | 3d 20 67 65 74 63 28 73 |.if ((c |= getc(s|
|00004140| 74 72 75 63 74 73 29 29 | 20 21 3d 20 27 20 27 29 |tructs))| != ' ')|
|00004150| 20 7b 0a 09 09 09 09 09 | 75 6e 67 65 74 63 28 63 | {......|ungetc(c|
|00004160| 2c 20 73 74 72 75 63 74 | 73 29 3b 0a 09 09 09 09 |, struct|s);.....|
|00004170| 09 7d 0a 09 09 09 09 7d | 0a 0a 09 09 09 7d 0a 09 |.}.....}|.....}..|
|00004180| 09 65 6c 73 65 20 7b 0a | 09 09 09 70 75 74 63 68 |.else {.|...putch|
|00004190| 61 72 28 63 29 3b 0a 09 | 09 09 6f 75 74 6c 69 6e |ar(c);..|..outlin|
|000041a0| 65 6c 65 6e 20 2b 3d 20 | 31 3b 0a 09 09 09 7d 0a |elen += |1;....}.|
|000041b0| 09 09 7d 0a 09 7d 0a 0a | 70 72 69 6e 74 66 28 22 |..}..}..|printf("|
|000041c0| 2e 5c 6e 22 29 3b 0a 0a | 7d 09 2f 2a 20 45 4e 44 |.\n");..|}./* END|
|000041d0| 20 70 67 70 5f 74 6f 5f | 74 78 74 28 29 20 2a 2f | pgp_to_|txt() */|
|000041e0| 0a 0a 0a 0a 76 6f 69 64 | 20 74 78 74 5f 74 6f 5f |....void| txt_to_|
|000041f0| 75 75 28 29 0a 7b 0a 69 | 6e 74 20 69 2c 20 6a 3b |uu().{.i|nt i, j;|
|00004200| 0a 63 68 61 72 20 77 6f | 72 64 5b 57 4f 52 44 4c |.char wo|rd[WORDL|
|00004210| 45 4e 5d 3b 0a 69 6e 74 | 20 6f 75 74 6c 69 6e 65 |EN];.int| outline|
|00004220| 6c 65 6e 20 3d 20 30 3b | 0a 69 6e 74 20 77 6f 72 |len = 0;|.int wor|
|00004230| 64 6c 65 6e 3b 0a 73 74 | 72 75 63 74 20 65 6e 74 |dlen;.st|ruct ent|
|00004240| 72 79 20 74 65 6d 70 65 | 6e 74 3b 0a 73 74 72 75 |ry tempe|nt;.stru|
|00004250| 63 74 20 65 6e 74 72 79 | 20 2a 6e 65 77 65 6e 74 |ct entry| *newent|
|00004260| 3b 0a 69 6e 74 20 6c 61 | 73 74 5f 61 70 6f 73 74 |;.int la|st_apost|
|00004270| 20 3d 20 30 3b 0a 63 68 | 61 72 20 6e 75 6c 6c 5f | = 0;.ch|ar null_|
|00004280| 63 68 61 72 3b 0a 0a 23 | 69 66 64 65 66 20 55 55 |char;..#|ifdef UU|
|00004290| 5f 53 50 41 43 45 0a 6e | 75 6c 6c 5f 63 68 61 72 |_SPACE.n|ull_char|
|000042a0| 20 3d 20 27 20 27 3b 0a | 23 65 6c 73 65 0a 6e 75 | = ' ';.|#else.nu|
|000042b0| 6c 6c 5f 63 68 61 72 20 | 3d 20 27 60 27 3b 0a 23 |ll_char |= '`';.#|
|000042c0| 65 6e 64 69 66 0a 0a 0a | 70 72 69 6e 74 66 28 22 |endif...|printf("|
|000042d0| 62 65 67 69 6e 20 36 34 | 34 20 74 65 78 74 6f 2e |begin 64|4 texto.|
|000042e0| 6f 75 74 5c 6e 22 29 3b | 0a 0a 77 68 69 6c 65 20 |out\n");|..while |
|000042f0| 28 20 66 73 63 61 6e 66 | 28 6d 65 73 73 61 67 65 |( fscanf|(message|
|00004300| 2c 20 22 25 73 22 2c 20 | 77 6f 72 64 29 20 21 3d |, "%s", |word) !=|
|00004310| 20 45 4f 46 20 29 20 7b | 0a 0a 09 77 6f 72 64 6c | EOF ) {|...wordl|
|00004320| 65 6e 20 3d 20 73 74 72 | 6c 65 6e 28 77 6f 72 64 |en = str|len(word|
|00004330| 29 3b 0a 09 69 66 20 28 | 77 6f 72 64 5b 77 6f 72 |);..if (|word[wor|
|00004340| 64 6c 65 6e 2d 31 5d 20 | 3d 3d 20 27 2e 27 20 7c |dlen-1] |== '.' ||
|00004350| 7c 20 77 6f 72 64 5b 77 | 6f 72 64 6c 65 6e 2d 31 || word[w|ordlen-1|
|00004360| 5d 20 3d 3d 20 27 2c 27 | 20 7c 7c 0a 09 09 20 77 |] == ','| ||... w|
|00004370| 6f 72 64 5b 77 6f 72 64 | 6c 65 6e 2d 31 5d 20 3d |ord[word|len-1] =|
|00004380| 3d 20 27 3f 27 20 7c 7c | 20 77 6f 72 64 5b 77 6f |= '?' ||| word[wo|
|00004390| 72 64 6c 65 6e 2d 31 5d | 20 3d 3d 20 27 21 27 29 |rdlen-1]| == '!')|
|000043a0| 20 7b 0a 20 09 09 77 6f | 72 64 5b 77 6f 72 64 6c | {. ..wo|rd[wordl|
|000043b0| 65 6e 2d 31 5d 20 3d 20 | 28 63 68 61 72 29 4e 55 |en-1] = |(char)NU|
|000043c0| 4c 4c 3b 0a 09 09 77 6f | 72 64 6c 65 6e 20 2d 3d |LL;...wo|rdlen -=|
|000043d0| 20 31 3b 0a 09 09 7d 0a | 09 69 66 20 28 77 6f 72 | 1;...}.|.if (wor|
|000043e0| 64 5b 77 6f 72 64 6c 65 | 6e 2d 31 5d 20 3d 3d 20 |d[wordle|n-1] == |
|000043f0| 27 73 27 20 29 20 7b 0a | 20 09 09 77 6f 72 64 5b |'s' ) {.| ..word[|
|00004400| 77 6f 72 64 6c 65 6e 2d | 31 5d 20 3d 20 28 63 68 |wordlen-|1] = (ch|
|00004410| 61 72 29 4e 55 4c 4c 3b | 0a 09 09 77 6f 72 64 6c |ar)NULL;|...wordl|
|00004420| 65 6e 20 2d 3d 20 31 3b | 0a 09 09 7d 0a 09 69 66 |en -= 1;|...}..if|
|00004430| 20 28 73 74 72 63 6d 70 | 28 26 77 6f 72 64 5b 77 | (strcmp|(&word[w|
|00004440| 6f 72 64 6c 65 6e 2d 33 | 5d 2c 20 22 69 6e 67 22 |ordlen-3|], "ing"|
|00004450| 29 20 3d 3d 20 30 29 20 | 7b 0a 09 09 77 6f 72 64 |) == 0) |{...word|
|00004460| 5b 77 6f 72 64 6c 65 6e | 2d 31 5d 20 3d 20 77 6f |[wordlen|-1] = wo|
|00004470| 72 64 5b 77 6f 72 64 6c | 65 6e 2d 32 5d 20 3d 20 |rd[wordl|en-2] = |
|00004480| 77 6f 72 64 5b 77 6f 72 | 64 6c 65 6e 2d 33 5d 20 |word[wor|dlen-3] |
|00004490| 3d 20 28 63 68 61 72 29 | 4e 55 4c 4c 3b 0a 09 09 |= (char)|NULL;...|
|000044a0| 7d 0a 09 69 66 20 28 44 | 65 62 75 67 29 20 70 72 |}..if (D|ebug) pr|
|000044b0| 69 6e 74 66 28 22 25 73 | 22 2c 20 77 6f 72 64 29 |intf("%s|", word)|
|000044c0| 3b 0a 0a 09 73 70 72 69 | 6e 74 66 28 74 65 6d 70 |;...spri|ntf(temp|
|000044d0| 65 6e 74 2e 77 6f 72 64 | 2c 20 22 25 73 22 2c 20 |ent.word|, "%s", |
|000044e0| 77 6f 72 64 29 3b 0a 09 | 74 65 6d 70 65 6e 74 2e |word);..|tempent.|
|000044f0| 6c 65 6e 67 74 68 20 3d | 20 73 74 72 6c 65 6e 28 |length =| strlen(|
|00004500| 77 6f 72 64 29 3b 0a 09 | 74 65 6d 70 65 6e 74 2e |word);..|tempent.|
|00004510| 69 6e 64 65 78 20 3d 20 | 30 3b 0a 09 74 65 6d 70 |index = |0;..temp|
|00004520| 65 6e 74 2e 70 6f 73 20 | 3d 20 30 3b 0a 0a 09 69 |ent.pos |= 0;...i|
|00004530| 66 20 28 20 28 6e 65 77 | 65 6e 74 20 3d 20 4f 48 |f ( (new|ent = OH|
|00004540| 54 5f 41 63 63 65 73 73 | 28 20 26 74 65 6d 70 65 |T_Access|( &tempe|
|00004550| 6e 74 2c 20 68 74 61 62 | 6c 65 20 29 29 20 21 3d |nt, htab|le )) !=|
|00004560| 20 28 76 6f 69 64 20 2a | 29 4f 48 54 5f 46 41 49 | (void *|)OHT_FAI|
|00004570| 4c 55 52 45 20 29 20 7b | 0a 0a 09 09 69 20 3d 20 |LURE ) {|....i = |
|00004580| 6e 65 77 65 6e 74 2d 3e | 69 6e 64 65 78 3b 0a 0a |newent->|index;..|
|00004590| 09 09 69 66 20 28 6c 61 | 73 74 5f 61 70 6f 73 74 |..if (la|st_apost|
|000045a0| 29 20 7b 0a 09 09 09 70 | 72 69 6e 74 66 28 22 25 |) {....p|rintf("%|
|000045b0| 63 22 2c 20 6e 75 6c 6c | 5f 63 68 61 72 29 3b 0a |c", null|_char);.|
|000045c0| 09 09 09 6f 75 74 6c 69 | 6e 65 6c 65 6e 2b 2b 3b |...outli|nelen++;|
|000045d0| 0a 09 09 09 69 66 20 28 | 6f 75 74 6c 69 6e 65 6c |....if (|outlinel|
|000045e0| 65 6e 20 3d 3d 20 36 31 | 29 20 7b 0a 09 09 09 09 |en == 61|) {.....|
|000045f0| 70 72 69 6e 74 66 28 22 | 5c 6e 22 29 3b 0a 09 09 |printf("|\n");...|
|00004600| 09 09 6f 75 74 6c 69 6e | 65 6c 65 6e 20 3d 20 30 |..outlin|elen = 0|
|00004610| 3b 0a 09 09 09 09 7d 0a | 09 09 09 7d 0a 0a 23 69 |;.....}.|...}..#i|
|00004620| 66 64 65 66 20 55 55 5f | 53 50 41 43 45 0a 09 09 |fdef UU_|SPACE...|
|00004630| 69 66 20 28 20 69 20 3d | 3d 20 30 20 29 20 7b 0a |if ( i =|= 0 ) {.|
|00004640| 23 65 6c 73 65 0a 09 09 | 69 66 20 28 20 69 20 3d |#else...|if ( i =|
|00004650| 3d 20 36 33 20 29 20 7b | 0a 23 65 6e 64 69 66 0a |= 63 ) {|.#endif.|
|00004660| 09 09 09 6c 61 73 74 5f | 61 70 6f 73 74 20 3d 20 |...last_|apost = |
|00004670| 31 3b 0a 09 09 09 7d 0a | 09 09 65 6c 73 65 20 7b |1;....}.|..else {|
|00004680| 0a 0a 23 69 66 64 65 66 | 20 55 55 5f 53 50 41 43 |..#ifdef| UU_SPAC|
|00004690| 45 0a 09 09 09 70 72 69 | 6e 74 66 28 22 25 63 22 |E....pri|ntf("%c"|
|000046a0| 2c 20 69 2b 33 32 29 3b | 09 0a 23 65 6c 73 65 0a |, i+32);|..#else.|
|000046b0| 09 09 09 70 72 69 6e 74 | 66 28 22 25 63 22 2c 20 |...print|f("%c", |
|000046c0| 69 2b 33 33 29 3b 09 0a | 23 65 6e 64 69 66 0a 0a |i+33);..|#endif..|
|000046d0| 09 09 09 6f 75 74 6c 69 | 6e 65 6c 65 6e 2b 2b 3b |...outli|nelen++;|
|000046e0| 0a 09 09 09 69 66 20 28 | 6f 75 74 6c 69 6e 65 6c |....if (|outlinel|
|000046f0| 65 6e 20 3d 3d 20 36 31 | 29 20 7b 0a 09 09 09 09 |en == 61|) {.....|
|00004700| 70 72 69 6e 74 66 28 22 | 5c 6e 22 29 3b 0a 09 09 |printf("|\n");...|
|00004710| 09 09 6f 75 74 6c 69 6e | 65 6c 65 6e 20 3d 20 30 |..outlin|elen = 0|
|00004720| 3b 0a 09 09 09 09 7d 0a | 09 09 09 6c 61 73 74 5f |;.....}.|...last_|
|00004730| 61 70 6f 73 74 20 3d 20 | 30 3b 0a 09 09 09 7d 0a |apost = |0;....}.|
|00004740| 0a 09 09 69 66 20 28 44 | 65 62 75 67 29 20 70 72 |...if (D|ebug) pr|
|00004750| 69 6e 74 66 28 22 20 25 | 73 20 25 73 20 25 73 20 |intf(" %|s %s %s |
|00004760| 25 73 20 25 73 5c 6e 22 | 2c 20 64 69 63 74 5b 54 |%s %s\n"|, dict[T|
|00004770| 48 49 4e 47 5d 5b 69 5d | 2c 20 64 69 63 74 5b 50 |HING][i]|, dict[P|
|00004780| 4c 41 43 45 5d 5b 69 5d | 2c 0a 09 09 09 09 64 69 |LACE][i]|,.....di|
|00004790| 63 74 5b 41 44 4a 45 43 | 54 49 56 45 5d 5b 69 5d |ct[ADJEC|TIVE][i]|
|000047a0| 2c 20 64 69 63 74 5b 41 | 44 56 45 52 42 5d 5b 69 |, dict[A|DVERB][i|
|000047b0| 5d 2c 20 64 69 63 74 5b | 56 45 52 42 5d 5b 69 5d |], dict[|VERB][i]|
|000047c0| 29 3b 0a 0a 09 09 7d 0a | 09 65 6c 73 65 20 7b 0a |);....}.|.else {.|
|000047d0| 09 09 2f 2a 0a 09 09 70 | 72 69 6e 74 66 28 22 41 |../*...p|rintf("A|
|000047e0| 63 63 65 73 73 20 66 61 | 69 6c 65 64 20 66 6f 72 |ccess fa|iled for|
|000047f0| 20 25 73 2e 5c 6e 22 2c | 20 77 6f 72 64 29 3b 0a | %s.\n",| word);.|
|00004800| 09 09 2a 2f 0a 09 09 7d | 0a 09 7d 0a 0a 09 69 66 |..*/...}|..}...if|
|00004810| 20 28 6c 61 73 74 5f 61 | 70 6f 73 74 29 20 7b 0a | (last_a|post) {.|
|00004820| 09 09 70 72 69 6e 74 66 | 28 22 25 63 22 2c 20 6e |..printf|("%c", n|
|00004830| 75 6c 6c 5f 63 68 61 72 | 29 3b 0a 09 09 7d 0a 09 |ull_char|);...}..|
|00004840| 70 72 69 6e 74 66 28 22 | 5c 6e 25 63 5c 6e 65 6e |printf("|\n%c\nen|
|00004850| 64 5c 6e 22 2c 20 6e 75 | 6c 6c 5f 63 68 61 72 29 |d\n", nu|ll_char)|
|00004860| 3b 0a 0a 7d 0a 0a 76 6f | 69 64 20 75 75 5f 74 6f |;..}..vo|id uu_to|
|00004870| 5f 74 78 74 28 29 0a 7b | 0a 63 68 61 72 20 6f 72 |_txt().{|.char or|
|00004880| 69 67 2c 20 63 2c 20 6c | 61 73 74 3b 0a 69 6e 74 |ig, c, l|ast;.int|
|00004890| 20 77 68 61 74 6c 65 6e | 3b 0a 69 6e 74 20 64 6f | whatlen|;.int do|
|000048a0| 6e 65 3b 0a 69 6e 74 20 | 69 2c 20 6a 3b 0a 63 68 |ne;.int |i, j;.ch|
|000048b0| 61 72 20 77 68 61 74 5b | 32 30 5d 3b 0a 63 68 61 |ar what[|20];.cha|
|000048c0| 72 20 74 65 6d 70 5b 38 | 30 5d 3b 0a 69 6e 74 20 |r temp[8|0];.int |
|000048d0| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 3d 20 30 3b 0a |outlinel|en = 0;.|
|000048e0| 69 6e 74 20 69 6e 64 65 | 78 3b 0a 0a 77 68 69 6c |int inde|x;..whil|
|000048f0| 65 20 28 20 28 6f 72 69 | 67 3d 67 65 74 63 28 6d |e ( (ori|g=getc(m|
|00004900| 65 73 73 61 67 65 29 29 | 20 21 3d 20 30 78 30 61 |essage))| != 0x0a|
|00004910| 20 29 20 7b 20 20 0a 09 | 2f 2a 20 69 67 6e 6f 72 | ) { ..|/* ignor|
|00004920| 65 20 65 76 65 72 79 74 | 68 69 6e 67 20 75 70 20 |e everyt|hing up |
|00004930| 74 6f 20 74 68 65 20 66 | 69 72 73 74 20 6e 65 77 |to the f|irst new|
|00004940| 6c 69 6e 65 20 2a 2f 0a | 09 7d 0a 0a 77 68 69 6c |line */.|.}..whil|
|00004950| 65 20 28 20 28 6f 72 69 | 67 3d 67 65 74 63 28 6d |e ( (ori|g=getc(m|
|00004960| 65 73 73 61 67 65 29 29 | 20 21 3d 20 28 63 68 61 |essage))| != (cha|
|00004970| 72 29 45 4f 46 20 29 20 | 7b 0a 0a 09 69 66 20 28 |r)EOF ) |{...if (|
|00004980| 20 6f 72 69 67 20 3d 3d | 20 30 78 30 61 20 29 20 | orig ==| 0x0a ) |
|00004990| 63 6f 6e 74 69 6e 75 65 | 3b 09 2f 2a 20 69 67 6e |continue|;./* ign|
|000049a0| 6f 72 65 20 6e 65 77 6c | 69 6e 65 73 20 2a 2f 0a |ore newl|ines */.|
|000049b0| 09 69 66 20 28 69 73 6c | 6f 77 65 72 28 6f 72 69 |.if (isl|ower(ori|
|000049c0| 67 29 29 20 63 6f 6e 74 | 69 6e 75 65 3b 09 2f 2a |g)) cont|inue;./*|
|000049d0| 20 69 67 6e 6f 72 65 20 | 27 65 6e 64 27 20 6c 69 | ignore |'end' li|
|000049e0| 6e 65 20 2a 2f 0a 09 65 | 6c 73 65 20 7b 0a 0a 23 |ne */..e|lse {..#|
|000049f0| 69 66 64 65 66 20 55 55 | 5f 53 50 41 43 45 0a 09 |ifdef UU|_SPACE..|
|00004a00| 09 69 6e 64 65 78 20 3d | 20 28 69 6e 74 29 28 6f |.index =| (int)(o|
|00004a10| 72 69 67 20 2d 20 33 32 | 29 3b 20 2f 2a 20 22 20 |rig - 32|); /* " |
|00004a20| 22 20 3d 30 20 75 70 20 | 74 6f 20 5f 3d 36 33 20 |" =0 up |to _=63 |
|00004a30| 20 66 6f 72 20 73 6f 6c | 61 72 69 73 20 2a 2f 0a | for sol|aris */.|
|00004a40| 23 65 6c 73 65 0a 09 09 | 69 6e 64 65 78 20 3d 20 |#else...|index = |
|00004a50| 28 69 6e 74 29 28 6f 72 | 69 67 20 2d 20 33 33 29 |(int)(or|ig - 33)|
|00004a60| 3b 20 2f 2a 20 21 3d 30 | 20 75 70 20 74 6f 20 60 |; /* !=0| up to `|
|00004a70| 3d 36 33 20 2a 2f 0a 23 | 65 6e 64 69 66 0a 0a 09 |=63 */.#|endif...|
|00004a80| 09 7d 0a 0a 09 64 6f 6e | 65 20 3d 20 30 3b 0a 0a |.}...don|e = 0;..|
|00004a90| 09 77 68 69 6c 65 20 28 | 20 21 64 6f 6e 65 20 29 |.while (| !done )|
|00004aa0| 20 7b 0a 0a 09 09 63 3d | 67 65 74 63 28 73 74 72 | {....c=|getc(str|
|00004ab0| 75 63 74 73 29 3b 0a 09 | 09 69 66 20 28 63 20 3d |ucts);..|.if (c =|
|00004ac0| 3d 20 30 78 30 61 29 20 | 63 6f 6e 74 69 6e 75 65 |= 0x0a) |continue|
|00004ad0| 3b 20 2f 2a 20 69 67 6e | 6f 72 65 20 6e 65 77 6c |; /* ign|ore newl|
|00004ae0| 69 6e 65 73 20 2a 2f 0a | 09 09 09 0a 09 09 69 66 |ines */.|......if|
|00004af0| 20 28 63 20 3d 3d 20 28 | 63 68 61 72 29 45 4f 46 | (c == (|char)EOF|
|00004b00| 20 29 20 7b 0a 09 09 09 | 72 65 77 69 6e 64 28 73 | ) {....|rewind(s|
|00004b10| 74 72 75 63 74 73 29 3b | 0a 09 09 09 63 20 3d 20 |tructs);|....c = |
|00004b20| 67 65 74 63 28 73 74 72 | 75 63 74 73 29 3b 0a 09 |getc(str|ucts);..|
|00004b30| 09 09 7d 0a 0a 09 09 69 | 66 20 28 20 63 20 3d 3d |..}....i|f ( c ==|
|00004b40| 20 27 5f 27 20 29 20 7b | 0a 0a 09 09 09 66 73 63 | '_' ) {|.....fsc|
|00004b50| 61 6e 66 28 73 74 72 75 | 63 74 73 2c 20 22 25 73 |anf(stru|cts, "%s|
|00004b60| 22 2c 20 77 68 61 74 29 | 3b 0a 09 09 09 64 6f 6e |", what)|;....don|
|00004b70| 65 20 3d 20 31 3b 0a 0a | 09 09 09 69 66 20 28 20 |e = 1;..|...if ( |
|00004b80| 73 74 72 6e 63 6d 70 28 | 77 68 61 74 2c 20 22 54 |strncmp(|what, "T|
|00004b90| 48 49 4e 47 22 2c 20 35 | 29 20 3d 3d 20 30 20 29 |HING", 5|) == 0 )|
|00004ba0| 20 7b 0a 09 09 09 09 70 | 72 69 6e 74 66 28 22 25 | {.....p|rintf("%|
|00004bb0| 73 22 2c 20 64 69 63 74 | 5b 54 48 49 4e 47 5d 5b |s", dict|[THING][|
|00004bc0| 69 6e 64 65 78 5d 29 3b | 0a 09 09 09 09 6f 75 74 |index]);|.....out|
|00004bd0| 6c 69 6e 65 6c 65 6e 20 | 2b 3d 20 73 74 72 6c 65 |linelen |+= strle|
|00004be0| 6e 28 64 69 63 74 5b 54 | 48 49 4e 47 5d 5b 69 6e |n(dict[T|HING][in|
|00004bf0| 64 65 78 5d 29 3b 0a 09 | 09 09 09 7d 0a 09 09 09 |dex]);..|...}....|
|00004c00| 65 6c 73 65 20 69 66 20 | 28 20 73 74 72 6e 63 6d |else if |( strncm|
|00004c10| 70 28 77 68 61 74 2c 20 | 22 56 45 52 42 22 2c 20 |p(what, |"VERB", |
|00004c20| 34 29 20 3d 3d 20 30 20 | 29 20 7b 0a 09 09 09 09 |4) == 0 |) {.....|
|00004c30| 70 72 69 6e 74 66 28 22 | 25 73 22 2c 20 64 69 63 |printf("|%s", dic|
|00004c40| 74 5b 56 45 52 42 5d 5b | 69 6e 64 65 78 5d 29 3b |t[VERB][|index]);|
|00004c50| 0a 09 09 09 09 6f 75 74 | 6c 69 6e 65 6c 65 6e 20 |.....out|linelen |
|00004c60| 2b 3d 20 73 74 72 6c 65 | 6e 28 64 69 63 74 5b 56 |+= strle|n(dict[V|
|00004c70| 45 52 42 5d 5b 69 6e 64 | 65 78 5d 29 3b 0a 09 09 |ERB][ind|ex]);...|
|00004c80| 09 09 7d 0a 09 09 09 65 | 6c 73 65 20 69 66 20 28 |..}....e|lse if (|
|00004c90| 20 73 74 72 6e 63 6d 70 | 28 77 68 61 74 2c 20 22 | strncmp|(what, "|
|00004ca0| 50 4c 41 43 45 22 2c 20 | 35 29 20 3d 3d 20 30 20 |PLACE", |5) == 0 |
|00004cb0| 29 20 7b 0a 09 09 09 09 | 70 72 69 6e 74 66 28 22 |) {.....|printf("|
|00004cc0| 25 73 22 2c 20 64 69 63 | 74 5b 50 4c 41 43 45 5d |%s", dic|t[PLACE]|
|00004cd0| 5b 69 6e 64 65 78 5d 29 | 3b 0a 09 09 09 09 6f 75 |[index])|;.....ou|
|00004ce0| 74 6c 69 6e 65 6c 65 6e | 20 2b 3d 20 73 74 72 6c |tlinelen| += strl|
|00004cf0| 65 6e 28 64 69 63 74 5b | 50 4c 41 43 45 5d 5b 69 |en(dict[|PLACE][i|
|00004d00| 6e 64 65 78 5d 29 3b 0a | 09 09 09 09 7d 0a 09 09 |ndex]);.|....}...|
|00004d10| 09 65 6c 73 65 20 69 66 | 20 28 20 73 74 72 6e 63 |.else if| ( strnc|
|00004d20| 6d 70 28 77 68 61 74 2c | 20 22 41 44 4a 45 43 54 |mp(what,| "ADJECT|
|00004d30| 49 56 45 22 2c 20 39 29 | 20 3d 3d 20 30 20 29 20 |IVE", 9)| == 0 ) |
|00004d40| 7b 0a 09 09 09 09 70 72 | 69 6e 74 66 28 22 25 73 |{.....pr|intf("%s|
|00004d50| 22 2c 20 64 69 63 74 5b | 41 44 4a 45 43 54 49 56 |", dict[|ADJECTIV|
|00004d60| 45 5d 5b 69 6e 64 65 78 | 5d 29 3b 0a 09 09 09 09 |E][index|]);.....|
|00004d70| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 2b 3d 20 73 74 |outlinel|en += st|
|00004d80| 72 6c 65 6e 28 64 69 63 | 74 5b 41 44 4a 45 43 54 |rlen(dic|t[ADJECT|
|00004d90| 49 56 45 5d 5b 69 6e 64 | 65 78 5d 29 3b 0a 09 09 |IVE][ind|ex]);...|
|00004da0| 09 09 7d 0a 09 09 09 65 | 6c 73 65 20 69 66 20 28 |..}....e|lse if (|
|00004db0| 20 73 74 72 6e 63 6d 70 | 28 77 68 61 74 2c 20 22 | strncmp|(what, "|
|00004dc0| 41 44 56 45 52 42 22 2c | 20 36 29 20 3d 3d 20 30 |ADVERB",| 6) == 0|
|00004dd0| 20 29 20 7b 0a 09 09 09 | 09 70 72 69 6e 74 66 28 | ) {....|.printf(|
|00004de0| 22 25 73 22 2c 20 64 69 | 63 74 5b 41 44 56 45 52 |"%s", di|ct[ADVER|
|00004df0| 42 5d 5b 69 6e 64 65 78 | 5d 29 3b 0a 09 09 09 09 |B][index|]);.....|
|00004e00| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 2b 3d 20 73 74 |outlinel|en += st|
|00004e10| 72 6c 65 6e 28 64 69 63 | 74 5b 41 44 56 45 52 42 |rlen(dic|t[ADVERB|
|00004e20| 5d 5b 69 6e 64 65 78 5d | 29 3b 0a 09 09 09 09 7d |][index]|);.....}|
|00004e30| 0a 09 09 09 65 6c 73 65 | 20 7b 0a 09 09 09 09 70 |....else| {.....p|
|00004e40| 72 69 6e 74 66 28 22 25 | 73 22 2c 20 77 68 61 74 |rintf("%|s", what|
|00004e50| 29 3b 0a 09 09 09 09 6f | 75 74 6c 69 6e 65 6c 65 |);.....o|utlinele|
|00004e60| 6e 20 2b 3d 20 73 74 72 | 6c 65 6e 28 77 68 61 74 |n += str|len(what|
|00004e70| 29 3b 0a 09 09 09 09 64 | 6f 6e 65 20 3d 20 30 3b |);.....d|one = 0;|
|00004e80| 0a 09 09 09 09 7d 0a 09 | 09 09 77 68 61 74 6c 65 |.....}..|..whatle|
|00004e90| 6e 20 3d 20 73 74 72 6c | 65 6e 28 77 68 61 74 29 |n = strl|en(what)|
|00004ea0| 3b 0a 09 09 09 6c 61 73 | 74 20 3d 20 77 68 61 74 |;....las|t = what|
|00004eb0| 5b 77 68 61 74 6c 65 6e | 2d 32 5d 3b 0a 09 09 09 |[whatlen|-2];....|
|00004ec0| 69 66 20 28 6c 61 73 74 | 20 3d 3d 20 27 73 27 29 |if (last| == 's')|
|00004ed0| 20 7b 09 2f 2a 20 63 68 | 65 63 6b 20 32 6e 64 20 | {./* ch|eck 2nd |
|00004ee0| 74 6f 20 6c 61 73 74 20 | 63 68 61 72 20 66 6f 72 |to last |char for|
|00004ef0| 20 22 73 2e 22 20 2a 2f | 0a 09 09 09 09 70 75 74 | "s." */|.....put|
|00004f00| 63 68 61 72 28 6c 61 73 | 74 29 3b 0a 09 09 09 09 |char(las|t);.....|
|00004f10| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 2b 3d 32 3b 0a |outlinel|en +=2;.|
|00004f20| 09 09 09 09 7d 0a 09 09 | 09 65 6c 73 65 20 69 66 |....}...|.else if|
|00004f30| 20 28 6c 61 73 74 20 3d | 3d 20 27 67 27 29 20 7b | (last =|= 'g') {|
|00004f40| 0a 09 09 09 09 70 72 69 | 6e 74 66 28 22 69 6e 67 |.....pri|ntf("ing|
|00004f50| 22 29 3b 0a 09 09 09 09 | 6f 75 74 6c 69 6e 65 6c |");.....|outlinel|
|00004f60| 65 6e 20 2b 3d 34 3b 0a | 09 09 09 09 7d 0a 09 09 |en +=4;.|....}...|
|00004f70| 09 6c 61 73 74 20 3d 20 | 77 68 61 74 5b 77 68 61 |.last = |what[wha|
|00004f80| 74 6c 65 6e 2d 31 5d 3b | 09 0a 09 09 09 69 66 20 |tlen-1];|.....if |
|00004f90| 28 6c 61 73 74 20 3d 3d | 20 27 2e 27 20 7c 7c 20 |(last ==| '.' || |
|00004fa0| 6c 61 73 74 20 3d 3d 20 | 27 3f 27 20 7c 7c 20 6c |last == |'?' || l|
|00004fb0| 61 73 74 20 3d 3d 20 27 | 21 27 29 20 7b 0a 09 09 |ast == '|!') {...|
|00004fc0| 09 09 70 72 69 6e 74 66 | 28 22 25 63 20 20 22 2c |..printf|("%c ",|
|00004fd0| 20 6c 61 73 74 29 3b 0a | 09 09 09 09 6f 75 74 6c | last);.|....outl|
|00004fe0| 69 6e 65 6c 65 6e 20 2b | 3d 34 3b 0a 09 09 09 09 |inelen +|=4;.....|
|00004ff0| 7d 0a 09 09 09 65 6c 73 | 65 20 69 66 20 28 6c 61 |}....els|e if (la|
|00005000| 73 74 20 3d 3d 20 27 2c | 27 29 20 7b 0a 09 09 09 |st == ',|') {....|
|00005010| 09 70 72 69 6e 74 66 28 | 22 2c 22 29 3b 0a 09 09 |.printf(|",");...|
|00005020| 09 09 6f 75 74 6c 69 6e | 65 6c 65 6e 20 2b 3d 33 |..outlin|elen +=3|
|00005030| 3b 0a 09 09 09 09 7d 0a | 09 09 09 65 6c 73 65 20 |;.....}.|...else |
|00005040| 69 66 20 28 6c 61 73 74 | 20 3d 3d 20 27 73 27 29 |if (last| == 's')|
|00005050| 20 7b 0a 09 09 09 09 70 | 75 74 63 68 61 72 28 6c | {.....p|utchar(l|
|00005060| 61 73 74 29 3b 0a 09 09 | 09 09 6f 75 74 6c 69 6e |ast);...|..outlin|
|00005070| 65 6c 65 6e 20 2b 3d 32 | 3b 0a 09 09 09 09 7d 0a |elen +=2|;.....}.|
|00005080| 09 09 09 65 6c 73 65 20 | 69 66 20 28 6c 61 73 74 |...else |if (last|
|00005090| 20 3d 3d 20 27 67 27 29 | 20 7b 0a 09 09 09 09 70 | == 'g')| {.....p|
|000050a0| 72 69 6e 74 66 28 22 69 | 6e 67 22 29 3b 0a 09 09 |rintf("i|ng");...|
|000050b0| 09 09 6f 75 74 6c 69 6e | 65 6c 65 6e 20 2b 3d 34 |..outlin|elen +=4|
|000050c0| 3b 0a 09 09 09 09 7d 0a | 0a 09 09 09 69 66 20 28 |;.....}.|....if (|
|000050d0| 6f 75 74 6c 69 6e 65 6c | 65 6e 20 3e 3d 20 36 30 |outlinel|en >= 60|
|000050e0| 29 20 7b 0a 09 09 09 09 | 70 72 69 6e 74 66 28 22 |) {.....|printf("|
|000050f0| 5c 6e 22 29 3b 0a 09 09 | 09 09 6f 75 74 6c 69 6e |\n");...|..outlin|
|00005100| 65 6c 65 6e 20 3d 20 30 | 3b 0a 09 09 09 09 69 66 |elen = 0|;.....if|
|00005110| 20 28 28 63 20 3d 20 67 | 65 74 63 28 73 74 72 75 | ((c = g|etc(stru|
|00005120| 63 74 73 29 29 20 21 3d | 20 27 20 27 29 20 7b 0a |cts)) !=| ' ') {.|
|00005130| 09 09 09 09 09 75 6e 67 | 65 74 63 28 63 2c 20 73 |.....ung|etc(c, s|
|00005140| 74 72 75 63 74 73 29 3b | 0a 09 09 09 09 09 7d 0a |tructs);|......}.|
|00005150| 09 09 09 09 7d 0a 0a 09 | 09 09 7d 0a 09 09 65 6c |....}...|..}...el|
|00005160| 73 65 20 7b 0a 09 09 09 | 70 75 74 63 68 61 72 28 |se {....|putchar(|
|00005170| 63 29 3b 0a 09 09 09 6f | 75 74 6c 69 6e 65 6c 65 |c);....o|utlinele|
|00005180| 6e 20 2b 3d 20 31 3b 0a | 09 09 09 7d 0a 09 09 7d |n += 1;.|...}...}|
|00005190| 0a 09 7d 0a 0a 70 72 69 | 6e 74 66 28 22 2e 5c 6e |..}..pri|ntf(".\n|
|000051a0| 22 29 3b 0a 0a 7d 0a 0a | 76 6f 69 64 20 74 78 74 |");..}..|void txt|
|000051b0| 5f 74 6f 5f 70 67 70 28 | 29 0a 7b 0a 0a 69 6e 74 |_to_pgp(|).{..int|
|000051c0| 20 69 2c 20 6a 3b 0a 63 | 68 61 72 20 77 6f 72 64 | i, j;.c|har word|
|000051d0| 5b 57 4f 52 44 4c 45 4e | 5d 3b 0a 69 6e 74 20 6f |[WORDLEN|];.int o|
|000051e0| 75 74 6c 69 6e 65 6c 65 | 6e 20 3d 20 30 3b 0a 69 |utlinele|n = 0;.i|
|000051f0| 6e 74 20 77 6f 72 64 6c | 65 6e 3b 0a 69 6e 74 20 |nt wordl|en;.int |
|00005200| 65 71 75 61 6c 20 3d 20 | 30 3b 0a 73 74 72 75 63 |equal = |0;.struc|
|00005210| 74 20 65 6e 74 72 79 20 | 74 65 6d 70 65 6e 74 3b |t entry |tempent;|
|00005220| 0a 73 74 72 75 63 74 20 | 65 6e 74 72 79 20 2a 6e |.struct |entry *n|
|00005230| 65 77 65 6e 74 3b 0a 0a | 70 72 69 6e 74 66 28 22 |ewent;..|printf("|
|00005240| 2d 2d 2d 2d 2d 42 45 47 | 49 4e 20 50 47 50 20 4d |-----BEG|IN PGP M|
|00005250| 45 53 53 41 47 45 2d 2d | 2d 2d 2d 5c 6e 56 65 72 |ESSAGE--|---\nVer|
|00005260| 73 69 6f 6e 3a 20 32 2e | 3f 5c 6e 5c 6e 22 29 3b |sion: 2.|?\n\n");|
|00005270| 0a 0a 77 68 69 6c 65 20 | 28 20 66 73 63 61 6e 66 |..while |( fscanf|
|00005280| 28 6d 65 73 73 61 67 65 | 2c 20 22 25 73 22 2c 20 |(message|, "%s", |
|00005290| 77 6f 72 64 29 20 21 3d | 20 45 4f 46 20 29 20 7b |word) !=| EOF ) {|
|000052a0| 0a 0a 09 77 6f 72 64 6c | 65 6e 20 3d 20 73 74 72 |...wordl|en = str|
|000052b0| 6c 65 6e 28 77 6f 72 64 | 29 3b 0a 09 69 66 20 28 |len(word|);..if (|
|000052c0| 77 6f 72 64 5b 77 6f 72 | 64 6c 65 6e 2d 31 5d 20 |word[wor|dlen-1] |
|000052d0| 3d 3d 20 27 2e 27 20 7c | 7c 20 77 6f 72 64 5b 77 |== '.' ||| word[w|
|000052e0| 6f 72 64 6c 65 6e 2d 31 | 5d 20 3d 3d 20 27 2c 27 |ordlen-1|] == ','|
|000052f0| 20 7c 7c 0a 09 09 20 77 | 6f 72 64 5b 77 6f 72 64 | ||... w|ord[word|
|00005300| 6c 65 6e 2d 31 5d 20 3d | 3d 20 27 3f 27 20 7c 7c |len-1] =|= '?' |||
|00005310| 20 77 6f 72 64 5b 77 6f | 72 64 6c 65 6e 2d 31 5d | word[wo|rdlen-1]|
|00005320| 20 3d 3d 20 27 21 27 29 | 20 7b 0a 20 09 09 77 6f | == '!')| {. ..wo|
|00005330| 72 64 5b 77 6f 72 64 6c | 65 6e 2d 31 5d 20 3d 20 |rd[wordl|en-1] = |
|00005340| 28 63 68 61 72 29 4e 55 | 4c 4c 3b 0a 09 09 77 6f |(char)NU|LL;...wo|
|00005350| 72 64 6c 65 6e 20 2d 3d | 20 31 3b 0a 09 09 7d 0a |rdlen -=| 1;...}.|
|00005360| 09 69 66 20 28 77 6f 72 | 64 5b 77 6f 72 64 6c 65 |.if (wor|d[wordle|
|00005370| 6e 2d 31 5d 20 3d 3d 20 | 27 73 27 20 29 20 7b 0a |n-1] == |'s' ) {.|
|00005380| 20 09 09 77 6f 72 64 5b | 77 6f 72 64 6c 65 6e 2d | ..word[|wordlen-|
|00005390| 31 5d 20 3d 20 28 63 68 | 61 72 29 4e 55 4c 4c 3b |1] = (ch|ar)NULL;|
|000053a0| 0a 09 09 77 6f 72 64 6c | 65 6e 20 2d 3d 20 31 3b |...wordl|en -= 1;|
|000053b0| 0a 09 09 7d 0a 09 69 66 | 20 28 73 74 72 63 6d 70 |...}..if| (strcmp|
|000053c0| 28 26 77 6f 72 64 5b 77 | 6f 72 64 6c 65 6e 2d 33 |(&word[w|ordlen-3|
|000053d0| 5d 2c 20 22 69 6e 67 22 | 29 20 3d 3d 20 30 29 20 |], "ing"|) == 0) |
|000053e0| 7b 0a 09 09 77 6f 72 64 | 5b 77 6f 72 64 6c 65 6e |{...word|[wordlen|
|000053f0| 2d 31 5d 20 3d 20 77 6f | 72 64 5b 77 6f 72 64 6c |-1] = wo|rd[wordl|
|00005400| 65 6e 2d 32 5d 20 3d 20 | 77 6f 72 64 5b 77 6f 72 |en-2] = |word[wor|
|00005410| 64 6c 65 6e 2d 33 5d 20 | 3d 20 28 63 68 61 72 29 |dlen-3] |= (char)|
|00005420| 4e 55 4c 4c 3b 0a 09 09 | 7d 0a 09 69 66 20 28 44 |NULL;...|}..if (D|
|00005430| 65 62 75 67 29 20 70 72 | 69 6e 74 66 28 22 25 73 |ebug) pr|intf("%s|
|00005440| 22 2c 20 77 6f 72 64 29 | 3b 0a 0a 09 73 70 72 69 |", word)|;...spri|
|00005450| 6e 74 66 28 74 65 6d 70 | 65 6e 74 2e 77 6f 72 64 |ntf(temp|ent.word|
|00005460| 2c 20 22 25 73 22 2c 20 | 77 6f 72 64 29 3b 0a 09 |, "%s", |word);..|
|00005470| 74 65 6d 70 65 6e 74 2e | 6c 65 6e 67 74 68 20 3d |tempent.|length =|
|00005480| 20 73 74 72 6c 65 6e 28 | 77 6f 72 64 29 3b 0a 09 | strlen(|word);..|
|00005490| 74 65 6d 70 65 6e 74 2e | 69 6e 64 65 78 20 3d 20 |tempent.|index = |
|000054a0| 30 3b 0a 09 74 65 6d 70 | 65 6e 74 2e 70 6f 73 20 |0;..temp|ent.pos |
|000054b0| 3d 20 30 3b 0a 0a 09 69 | 66 20 28 20 28 20 6e 65 |= 0;...i|f ( ( ne|
|000054c0| 77 65 6e 74 20 3d 20 4f | 48 54 5f 41 63 63 65 73 |went = O|HT_Acces|
|000054d0| 73 28 20 26 74 65 6d 70 | 65 6e 74 2c 20 68 74 61 |s( &temp|ent, hta|
|000054e0| 62 6c 65 20 29 29 20 21 | 3d 20 28 76 6f 69 64 20 |ble )) !|= (void |
|000054f0| 2a 29 4f 48 54 5f 46 41 | 49 4c 55 52 45 20 29 20 |*)OHT_FA|ILURE ) |
|00005500| 7b 0a 0a 09 09 69 20 3d | 20 6e 65 77 65 6e 74 2d |{....i =| newent-|
|00005510| 3e 69 6e 64 65 78 3b 0a | 0a 09 09 09 69 66 20 28 |>index;.|....if (|
|00005520| 69 20 3c 20 31 30 29 20 | 7b 0a 09 09 09 09 69 66 |i < 10) |{.....if|
|00005530| 20 28 65 71 75 61 6c 29 | 20 7b 20 70 72 69 6e 74 | (equal)| { print|
|00005540| 66 28 22 5c 6e 3d 22 29 | 3b 20 65 71 75 61 6c 20 |f("\n=")|; equal |
|00005550| 3d 20 30 3b 20 7d 0a 09 | 09 09 09 70 72 69 6e 74 |= 0; }..|...print|
|00005560| 66 28 22 25 63 22 2c 20 | 69 2b 34 38 29 3b 09 2f |f("%c", |i+48);./|
|00005570| 2a 20 30 2d 39 20 2a 2f | 0a 09 09 09 09 7d 0a 09 |* 0-9 */|.....}..|
|00005580| 09 09 65 6c 73 65 20 69 | 66 20 28 69 20 3c 3d 20 |..else i|f (i <= |
|00005590| 33 35 29 20 7b 0a 09 09 | 09 09 69 66 20 28 65 71 |35) {...|..if (eq|
|000055a0| 75 61 6c 29 20 7b 20 70 | 72 69 6e 74 66 28 22 5c |ual) { p|rintf("\|
|000055b0| 6e 3d 22 29 3b 20 65 71 | 75 61 6c 20 3d 20 30 3b |n="); eq|ual = 0;|
|000055c0| 20 7d 0a 09 09 09 09 70 | 72 69 6e 74 66 28 22 25 | }.....p|rintf("%|
|000055d0| 63 22 2c 20 69 2b 38 37 | 29 3b 09 2f 2a 20 61 2d |c", i+87|);./* a-|
|000055e0| 7a 20 2a 2f 0a 09 09 09 | 09 7d 0a 09 09 09 65 6c |z */....|.}....el|
|000055f0| 73 65 20 69 66 20 28 69 | 20 3c 3d 20 36 31 29 20 |se if (i| <= 61) |
|00005600| 7b 0a 09 09 09 09 69 66 | 20 28 65 71 75 61 6c 29 |{.....if| (equal)|
|00005610| 20 7b 20 70 72 69 6e 74 | 66 28 22 5c 6e 3d 22 29 | { print|f("\n=")|
|00005620| 3b 20 65 71 75 61 6c 20 | 3d 20 30 3b 20 7d 0a 09 |; equal |= 0; }..|
|00005630| 09 09 09 70 72 69 6e 74 | 66 28 22 25 63 22 2c 20 |...print|f("%c", |
|00005640| 69 2b 32 39 29 3b 09 2f | 2a 20 41 2d 5a 20 2a 2f |i+29);./|* A-Z */|
|00005650| 0a 09 09 09 09 7d 0a 09 | 09 09 65 6c 73 65 20 69 |.....}..|..else i|
|00005660| 66 20 28 69 20 3d 3d 20 | 36 32 29 20 7b 0a 09 09 |f (i == |62) {...|
|00005670| 09 09 69 66 20 28 65 71 | 75 61 6c 29 20 7b 20 70 |..if (eq|ual) { p|
|00005680| 72 69 6e 74 66 28 22 5c | 6e 3d 22 29 3b 20 65 71 |rintf("\|n="); eq|
|00005690| 75 61 6c 20 3d 20 30 3b | 20 7d 0a 09 09 09 09 70 |ual = 0;| }.....p|
|000056a0| 72 69 6e 74 66 28 22 2f | 22 29 3b 0a 09 09 09 09 |rintf("/|");.....|
|000056b0| 7d 0a 09 09 09 65 6c 73 | 65 20 69 66 20 28 69 20 |}....els|e if (i |
|000056c0| 3d 3d 20 36 33 29 20 7b | 0a 09 09 09 09 69 66 20 |== 63) {|.....if |
|000056d0| 28 65 71 75 61 6c 29 20 | 7b 20 70 72 69 6e 74 66 |(equal) |{ printf|
|000056e0| 28 22 5c 6e 3d 22 29 3b | 20 65 71 75 61 6c 20 3d |("\n=");| equal =|
|000056f0| 20 30 3b 20 7d 0a 09 09 | 09 09 70 72 69 6e 74 66 | 0; }...|..printf|
|00005700| 28 22 2b 22 29 3b 0a 09 | 09 09 09 7d 0a 09 09 09 |("+");..|...}....|
|00005710| 65 6c 73 65 20 69 66 20 | 28 69 20 3d 3d 20 36 34 |else if |(i == 64|
|00005720| 29 20 7b 0a 09 09 09 09 | 69 66 20 28 65 71 75 61 |) {.....|if (equa|
|00005730| 6c 29 20 70 72 69 6e 74 | 66 28 22 3d 22 29 3b 0a |l) print|f("=");.|
|00005740| 09 09 09 09 65 71 75 61 | 6c 20 3d 20 31 3b 0a 09 |....equa|l = 1;..|
|00005750| 09 09 09 7d 0a 09 09 09 | 65 6c 73 65 20 7b 0a 09 |...}....|else {..|
|00005760| 09 09 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |...fprin|tf(stder|
|00005770| 72 2c 20 22 47 6f 74 20 | 75 6e 6b 6e 6f 77 6e 20 |r, "Got |unknown |
|00005780| 69 6e 64 65 78 20 25 64 | 5c 6e 22 2c 20 69 29 3b |index %d|\n", i);|
|00005790| 0a 09 09 09 09 7d 0a 0a | 09 09 69 66 20 28 44 65 |.....}..|..if (De|
|000057a0| 62 75 67 29 20 70 72 69 | 6e 74 66 28 22 20 25 73 |bug) pri|ntf(" %s|
|000057b0| 20 25 73 20 25 73 20 25 | 73 20 25 73 5c 6e 22 2c | %s %s %|s %s\n",|
|000057c0| 20 64 69 63 74 5b 54 48 | 49 4e 47 5d 5b 69 5d 2c | dict[TH|ING][i],|
|000057d0| 20 64 69 63 74 5b 50 4c | 41 43 45 5d 5b 69 5d 2c | dict[PL|ACE][i],|
|000057e0| 0a 09 09 09 09 64 69 63 | 74 5b 41 44 4a 45 43 54 |.....dic|t[ADJECT|
|000057f0| 49 56 45 5d 5b 69 5d 2c | 20 64 69 63 74 5b 41 44 |IVE][i],| dict[AD|
|00005800| 56 45 52 42 5d 5b 69 5d | 2c 20 64 69 63 74 5b 56 |VERB][i]|, dict[V|
|00005810| 45 52 42 5d 5b 69 5d 29 | 3b 0a 0a 0a 09 09 09 6f |ERB][i])|;......o|
|00005820| 75 74 6c 69 6e 65 6c 65 | 6e 2b 2b 3b 0a 09 09 09 |utlinele|n++;....|
|00005830| 69 66 20 28 6f 75 74 6c | 69 6e 65 6c 65 6e 20 3d |if (outl|inelen =|
|00005840| 3d 20 36 34 29 20 7b 0a | 09 09 09 09 70 72 69 6e |= 64) {.|....prin|
|00005850| 74 66 28 22 5c 6e 22 29 | 3b 0a 09 09 09 09 6f 75 |tf("\n")|;.....ou|
|00005860| 74 6c 69 6e 65 6c 65 6e | 20 3d 20 30 3b 0a 09 09 |tlinelen| = 0;...|
|00005870| 09 09 7d 0a 0a 09 09 7d | 0a 09 65 6c 73 65 20 7b |..}....}|..else {|
|00005880| 0a 09 09 2f 2a 0a 09 09 | 70 72 69 6e 74 66 28 22 |.../*...|printf("|
|00005890| 41 63 63 65 73 73 20 66 | 61 69 6c 65 64 20 66 6f |Access f|ailed fo|
|000058a0| 72 20 25 73 2e 5c 6e 22 | 2c 20 77 6f 72 64 29 3b |r %s.\n"|, word);|
|000058b0| 0a 09 09 2a 2f 0a 09 09 | 7d 0a 09 7d 0a 0a 09 70 |...*/...|}..}...p|
|000058c0| 72 69 6e 74 66 28 22 5c | 6e 22 29 3b 0a 09 70 72 |rintf("\|n");..pr|
|000058d0| 69 6e 74 66 28 22 2d 2d | 2d 2d 2d 45 4e 44 20 50 |intf("--|---END P|
|000058e0| 47 50 20 4d 45 53 53 41 | 47 45 2d 2d 2d 2d 2d 5c |GP MESSA|GE-----\|
|000058f0| 6e 22 29 3b 0a 0a 09 2f | 2a 0a 09 4f 48 54 5f 44 |n");.../|*..OHT_D|
|00005900| 75 6d 70 28 20 68 74 61 | 62 6c 65 20 29 3b 0a 09 |ump( hta|ble );..|
|00005910| 2a 2f 0a 0a 7d 0a 0a 0a | 69 6e 74 20 63 6f 6d 70 |*/..}...|int comp|
|00005920| 5f 65 6e 74 72 69 65 73 | 28 20 76 6f 69 64 20 2a |_entries|( void *|
|00005930| 65 31 2c 20 76 6f 69 64 | 20 2a 65 32 20 29 0a 7b |e1, void| *e2 ).{|
|00005940| 0a 09 0a 09 69 66 20 28 | 20 65 31 20 3d 3d 20 4e |....if (| e1 == N|
|00005950| 55 4c 4c 20 7c 7c 20 65 | 32 20 3d 3d 20 4e 55 4c |ULL || e|2 == NUL|
|00005960| 4c 20 29 20 7b 0a 09 09 | 2f 2a 0a 09 09 70 72 69 |L ) {...|/*...pri|
|00005970| 6e 74 66 28 22 43 61 6e | 27 74 20 63 6f 6d 70 61 |ntf("Can|'t compa|
|00005980| 72 65 20 6e 75 6c 6c 20 | 65 6e 74 72 79 2e 5c 6e |re null |entry.\n|
|00005990| 22 29 3b 0a 09 09 2a 2f | 0a 09 09 72 65 74 75 72 |");...*/|...retur|
|000059a0| 6e 28 20 4f 48 54 5f 46 | 41 49 4c 55 52 45 20 29 |n( OHT_F|AILURE )|
|000059b0| 3b 0a 09 09 7d 0a 09 69 | 66 20 28 20 28 28 73 74 |;...}..i|f ( ((st|
|000059c0| 72 75 63 74 20 65 6e 74 | 72 79 20 2a 29 20 65 31 |ruct ent|ry *) e1|
|000059d0| 29 2d 3e 6c 65 6e 67 74 | 68 20 21 3d 20 28 28 73 |)->lengt|h != ((s|
|000059e0| 74 72 75 63 74 20 65 6e | 74 72 79 20 2a 29 65 32 |truct en|try *)e2|
|000059f0| 29 2d 3e 6c 65 6e 67 74 | 68 20 29 20 7b 0a 09 09 |)->lengt|h ) {...|
|00005a00| 2f 2a 0a 09 09 70 72 69 | 6e 74 66 28 22 44 69 66 |/*...pri|ntf("Dif|
|00005a10| 66 65 72 69 6e 67 20 6c | 65 6e 67 74 68 73 20 25 |fering l|engths %|
|00005a20| 64 20 25 64 2e 5c 6e 22 | 2c 20 0a 09 20 20 20 20 |d %d.\n"|, .. |
|00005a30| 20 20 20 20 20 28 28 73 | 74 72 75 63 74 20 65 6e | ((s|truct en|
|00005a40| 74 72 79 20 2a 29 20 65 | 31 29 2d 3e 6c 65 6e 67 |try *) e|1)->leng|
|00005a50| 74 68 2c 20 28 28 73 74 | 72 75 63 74 20 65 6e 74 |th, ((st|ruct ent|
|00005a60| 72 79 20 2a 29 65 32 29 | 2d 3e 6c 65 6e 67 74 68 |ry *)e2)|->length|
|00005a70| 29 3b 0a 09 09 2a 2f 0a | 09 09 72 65 74 75 72 6e |);...*/.|..return|
|00005a80| 28 20 4f 48 54 5f 46 41 | 49 4c 55 52 45 20 29 3b |( OHT_FA|ILURE );|
|00005a90| 0a 09 09 7d 0a 09 69 66 | 20 28 28 73 74 72 63 6d |...}..if| ((strcm|
|00005aa0| 70 28 28 28 73 74 72 75 | 63 74 20 65 6e 74 72 79 |p(((stru|ct entry|
|00005ab0| 20 2a 29 65 31 29 2d 3e | 77 6f 72 64 2c 20 28 28 | *)e1)->|word, ((|
|00005ac0| 73 74 72 75 63 74 20 65 | 6e 74 72 79 20 2a 29 65 |struct e|ntry *)e|
|00005ad0| 32 29 2d 3e 77 6f 72 64 | 29 29 20 21 3d 20 30 29 |2)->word|)) != 0)|
|00005ae0| 7b 0a 09 09 2f 2a 0a 09 | 09 70 72 69 6e 74 66 28 |{.../*..|.printf(|
|00005af0| 22 53 61 6d 65 20 6c 65 | 6e 67 74 68 2c 20 64 69 |"Same le|ngth, di|
|00005b00| 66 66 65 72 65 6e 74 20 | 77 6f 72 64 2e 5c 6e 22 |fferent |word.\n"|
|00005b10| 29 3b 0a 09 09 2a 2f 0a | 09 09 72 65 74 75 72 6e |);...*/.|..return|
|00005b20| 28 20 4f 48 54 5f 46 41 | 49 4c 55 52 45 20 29 3b |( OHT_FA|ILURE );|
|00005b30| 0a 09 09 7d 0a 0a 09 72 | 65 74 75 72 6e 28 20 4f |...}...r|eturn( O|
|00005b40| 48 54 5f 53 55 43 43 45 | 53 53 20 29 3b 0a 0a 7d |HT_SUCCE|SS );..}|
|00005b50| 0a 0a 69 6e 74 20 67 65 | 74 5f 69 6e 64 65 78 20 |..int ge|t_index |
|00005b60| 28 20 76 6f 69 64 20 2a | 74 68 69 73 20 29 0a 7b |( void *|this ).{|
|00005b70| 0a 09 0a 09 69 6e 74 20 | 69 3b 0a 09 69 6e 74 20 |....int |i;..int |
|00005b80| 74 6f 74 61 6c 3b 0a 0a | 09 74 6f 74 61 6c 20 3d |total;..|.total =|
|00005b90| 20 30 3b 0a 0a 09 66 6f | 72 20 28 20 69 3d 30 3b | 0;...fo|r ( i=0;|
|00005ba0| 20 69 3c 57 4f 52 44 4c | 45 4e 3b 20 69 2b 2b 20 | i<WORDL|EN; i++ |
|00005bb0| 29 20 7b 0a 09 09 74 6f | 74 61 6c 20 2b 3d 20 28 |) {...to|tal += (|
|00005bc0| 69 6e 74 29 20 28 28 73 | 74 72 75 63 74 20 65 6e |int) ((s|truct en|
|00005bd0| 74 72 79 20 2a 29 74 68 | 69 73 29 2d 3e 77 6f 72 |try *)th|is)->wor|
|00005be0| 64 5b 69 5d 20 2a 20 33 | 31 3b 0a 09 09 69 66 20 |d[i] * 3|1;...if |
|00005bf0| 28 28 28 73 74 72 75 63 | 74 20 65 6e 74 72 79 20 |(((struc|t entry |
|00005c00| 2a 29 74 68 69 73 29 2d | 3e 77 6f 72 64 5b 69 5d |*)this)-|>word[i]|
|00005c10| 20 3d 3d 20 28 63 68 61 | 72 29 4e 55 4c 4c 29 20 | == (cha|r)NULL) |
|00005c20| 62 72 65 61 6b 3b 0a 09 | 09 7d 0a 0a 09 74 6f 74 |break;..|.}...tot|
|00005c30| 61 6c 20 25 3d 20 28 4e | 55 4d 57 4f 52 44 53 2a |al %= (N|UMWORDS*|
|00005c40| 35 29 20 2a 20 31 30 3b | 0a 0a 09 2f 2a 0a 09 70 |5) * 10;|.../*..p|
|00005c50| 72 69 6e 74 66 28 22 25 | 73 20 2d 3e 20 25 64 5c |rintf("%|s -> %d\|
|00005c60| 6e 22 2c 20 28 28 73 74 | 72 75 63 74 20 65 6e 74 |n", ((st|ruct ent|
|00005c70| 72 79 20 2a 29 74 68 69 | 73 29 2d 3e 77 6f 72 64 |ry *)thi|s)->word|
|00005c80| 2c 20 74 6f 74 61 6c 29 | 3b 0a 09 2a 2f 0a 09 72 |, total)|;..*/..r|
|00005c90| 65 74 75 72 6e 28 74 6f | 74 61 6c 29 3b 0a 0a 7d |eturn(to|tal);..}|
|00005ca0| 0a 0a 0a 76 6f 69 64 20 | 70 72 69 6e 74 5f 65 6e |...void |print_en|
|00005cb0| 74 72 79 20 28 20 76 6f | 69 64 20 2a 74 68 69 73 |try ( vo|id *this|
|00005cc0| 20 29 0a 7b 0a 0a 09 69 | 66 20 28 74 68 69 73 20 | ).{...i|f (this |
|00005cd0| 3d 3d 20 28 76 6f 69 64 | 20 2a 29 4e 55 4c 4c 29 |== (void| *)NULL)|
|00005ce0| 20 7b 0a 09 09 70 72 69 | 6e 74 66 28 22 23 23 23 | {...pri|ntf("###|
|00005cf0| 20 4e 55 4c 4c 20 65 6e | 74 72 79 20 23 23 23 5c | NULL en|try ###\|
|00005d00| 6e 22 29 3b 0a 09 09 7d | 0a 09 65 6c 73 65 20 7b |n");...}|..else {|
|00005d10| 0a 09 09 70 72 69 6e 74 | 66 28 22 25 31 35 73 20 |...print|f("%15s |
|00005d20| 6c 65 6e 67 74 68 3d 25 | 34 64 20 70 6f 73 3d 25 |length=%|4d pos=%|
|00005d30| 32 64 2e 5c 6e 22 2c 20 | 0a 09 09 09 09 28 28 73 |2d.\n", |.....((s|
|00005d40| 74 72 75 63 74 20 65 6e | 74 72 79 20 2a 29 74 68 |truct en|try *)th|
|00005d50| 69 73 29 2d 3e 77 6f 72 | 64 2c 0a 09 09 09 09 28 |is)->wor|d,.....(|
|00005d60| 28 73 74 72 75 63 74 20 | 65 6e 74 72 79 20 2a 29 |(struct |entry *)|
|00005d70| 74 68 69 73 29 2d 3e 6c | 65 6e 67 74 68 2c 0a 09 |this)->l|ength,..|
|00005d80| 09 09 09 28 28 73 74 72 | 75 63 74 20 65 6e 74 72 |...((str|uct entr|
|00005d90| 79 20 2a 29 74 68 69 73 | 29 2d 3e 70 6f 73 0a 09 |y *)this|)->pos..|
|00005da0| 09 09 09 29 3b 0a 09 09 | 7d 0a 0a 7d 0a 2b 2b 20 |...);...|}..}.++ |
|00005db0| 29 20 7b 0a 09 09 74 6f | 74 61 6c 20 2b 3d 20 28 |) {...to|tal += (|
|00005dc0| 69 6e 74 29 20 28 28 73 | 74 72 75 63 74 20 65 6e |int) ((s|truct en|
|00005dd0| 74 72 79 20 2a 29 74 68 | 69 73 29 2d 3e 77 6f 72 |try *)th|is)->wor|
|00005de0| 64 5b 69 5d 20 2a 20 33 | 31 3b 0a 09 09 69 66 20 |d[i] * 3|1;...if |
|00005df0| 28 28 28 73 74 72 75 63 | 74 20 65 6e 74 72 79 20 |(((struc|t entry |
|00005e00| 6f 68 74 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |oht.c...|........|
|00005e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 30 30 30 36 | 34 34 20 00 30 30 32 31 |....0006|44 .0021|
|00005e70| 32 36 20 00 30 30 30 30 | 32 34 20 00 30 30 30 30 |26 .0000|24 .0000|
|00005e80| 30 30 32 32 32 36 33 20 | 30 35 37 32 34 36 37 31 |0022263 |05724671|
|00005e90| 37 34 33 20 30 31 30 37 | 34 33 00 20 30 00 00 00 |743 0107|43. 0...|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 75 73 74 61 72 00 30 | 30 6d 61 68 65 72 00 00 |.ustar.0|0maher..|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 00 00 00 |........|.user...|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 23 69 6e 63 6c 75 64 65 | 20 22 6f 68 74 2e 68 22 |#include| "oht.h"|
|00006010| 0a 0a 73 74 72 75 63 74 | 20 4f 48 54 20 2a 4f 48 |..struct| OHT *OH|
|00006020| 54 5f 43 72 65 61 74 65 | 28 20 69 6e 74 20 65 6c |T_Create|( int el|
|00006030| 65 6d 65 6e 74 73 69 7a | 65 2c 20 69 6e 74 20 73 |ementsiz|e, int s|
|00006040| 69 7a 65 2c 20 0a 20 20 | 20 20 20 20 20 20 20 20 |ize, . | |
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e | | in|
|00006060| 74 20 28 2a 65 71 5f 66 | 75 6e 63 29 28 76 6f 69 |t (*eq_f|unc)(voi|
|00006070| 64 20 2a 2c 20 76 6f 69 | 64 20 2a 29 2c 20 0a 20 |d *, voi|d *), . |
|00006080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006090| 20 20 20 20 20 20 20 69 | 6e 74 20 28 2a 67 65 74 | i|nt (*get|
|000060a0| 5f 69 76 61 6c 29 28 76 | 6f 69 64 20 2a 29 2c 0a |_ival)(v|oid *),.|
|000060b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000060c0| 20 20 20 20 20 20 20 20 | 76 6f 69 64 20 28 2a 70 | |void (*p|
|000060d0| 72 69 6e 74 5f 65 6c 65 | 6d 65 6e 74 29 28 76 6f |rint_ele|ment)(vo|
|000060e0| 69 64 2a 29 20 29 0a 7b | 0a 20 20 20 73 74 72 75 |id*) ).{|. stru|
|000060f0| 63 74 20 4f 48 54 20 2a | 74 61 62 6c 65 3b 0a 20 |ct OHT *|table;. |
|00006100| 20 20 69 6e 74 20 69 3b | 0a 20 20 20 69 6e 74 20 | int i;|. int |
|00006110| 69 73 70 72 69 6d 65 20 | 3d 20 30 3b 0a 09 69 6e |isprime |= 0;..in|
|00006120| 74 20 6d 61 78 3b 0a 20 | 20 20 0a 20 20 20 69 66 |t max;. | . if|
|00006130| 20 28 20 65 6c 65 6d 65 | 6e 74 73 69 7a 65 20 3d | ( eleme|ntsize =|
|00006140| 3d 20 28 69 6e 74 29 20 | 4e 55 4c 4c 20 20 20 20 |= (int) |NULL |
|00006150| 7c 7c 20 73 69 7a 65 20 | 20 20 20 20 20 20 20 3d ||| size | =|
|00006160| 3d 20 28 69 6e 74 29 20 | 4e 55 4c 4c 20 20 7c 7c |= (int) |NULL |||
|00006170| 20 0a 20 20 20 20 20 20 | 20 20 65 71 5f 66 75 6e | . | eq_fun|
|00006180| 63 20 20 20 20 20 3d 3d | 20 4e 55 4c 4c 20 20 20 |c ==| NULL |
|00006190| 20 20 20 20 20 20 20 7c | 7c 20 67 65 74 5f 69 76 | ||| get_iv|
|000061a0| 61 6c 20 20 20 20 3d 3d | 20 4e 55 4c 4c 20 20 20 |al ==| NULL |
|000061b0| 20 20 20 20 20 20 20 20 | 29 7b 0a 20 20 20 20 20 | |){. |
|000061c0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|000061d0| 20 22 4f 48 54 5f 43 72 | 65 61 74 65 3a 20 45 72 | "OHT_Cr|eate: Er|
|000061e0| 72 6f 72 2c 20 72 65 63 | 65 69 76 65 64 20 6e 75 |ror, rec|eived nu|
|000061f0| 6c 6c 20 70 61 72 61 6d | 65 74 65 72 2e 5c 6e 22 |ll param|eter.\n"|
|00006200| 29 3b 0a 20 20 20 20 20 | 20 72 65 74 75 72 6e 28 |);. | return(|
|00006210| 20 28 73 74 72 75 63 74 | 20 4f 48 54 20 2a 29 20 | (struct| OHT *) |
|00006220| 4f 48 54 5f 45 52 52 4f | 52 20 29 3b 0a 20 20 20 |OHT_ERRO|R );. |
|00006230| 20 20 20 7d 0a 0a 20 20 | 20 74 61 62 6c 65 20 3d | }.. | table =|
|00006240| 20 28 73 74 72 75 63 74 | 20 4f 48 54 20 2a 29 20 | (struct| OHT *) |
|00006250| 6d 61 6c 6c 6f 63 28 20 | 73 69 7a 65 6f 66 28 73 |malloc( |sizeof(s|
|00006260| 74 72 75 63 74 20 4f 48 | 54 29 20 29 3b 0a 0a 09 |truct OH|T) );...|
|00006270| 2f 2a 20 4d 61 6b 65 20 | 74 68 65 20 73 69 7a 65 |/* Make |the size|
|00006280| 20 6f 66 20 74 68 65 20 | 74 61 62 6c 65 20 31 32 | of the |table 12|
|00006290| 25 20 62 69 67 67 65 72 | 20 74 68 61 6e 20 74 68 |% bigger| than th|
|000062a0| 65 20 65 78 70 65 63 74 | 65 64 20 6e 75 6d 62 65 |e expect|ed numbe|
|000062b0| 72 20 6f 66 20 2a 2f 0a | 09 2f 2a 20 65 6c 65 6d |r of */.|./* elem|
|000062c0| 65 6e 74 73 2c 20 73 6f | 20 69 74 20 77 69 6c 6c |ents, so| it will|
|000062d0| 20 62 65 20 38 35 2d 39 | 30 25 20 66 75 6c 6c 2c | be 85-9|0% full,|
|000062e0| 20 77 68 69 63 68 20 69 | 73 20 6e 65 61 72 20 6f | which i|s near o|
|000062f0| 70 74 69 6d 75 6d 2e 20 | 20 20 20 20 20 20 2a 2f |ptimum. | */|
|00006300| 0a 09 2f 2a 20 52 6f 75 | 6e 64 20 74 6f 20 6e 65 |../* Rou|nd to ne|
|00006310| 61 72 65 73 74 20 6d 75 | 6c 74 69 70 6c 65 20 6f |arest mu|ltiple o|
|00006320| 66 20 32 30 2c 20 74 68 | 65 6e 20 61 64 64 20 37 |f 20, th|en add 7|
|00006330| 2c 20 73 6f 20 77 65 20 | 6b 6e 6f 77 20 69 74 27 |, so we |know it'|
|00006340| 73 20 6f 64 64 20 20 2a | 2f 0a 09 2f 2a 20 61 6e |s odd *|/../* an|
|00006350| 64 20 73 6f 6d 65 77 68 | 61 74 20 6c 69 6b 65 6c |d somewh|at likel|
|00006360| 79 20 74 6f 20 62 65 20 | 70 72 69 6d 65 2e 20 20 |y to be |prime. |
|00006370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006390| 2a 2f 0a 20 20 20 74 61 | 62 6c 65 2d 3e 74 61 62 |*/. ta|ble->tab|
|000063a0| 6c 65 73 69 7a 65 20 20 | 20 20 3d 20 28 28 69 6e |lesize | = ((in|
|000063b0| 74 29 28 73 69 7a 65 20 | 2b 20 2e 31 32 2a 73 69 |t)(size |+ .12*si|
|000063c0| 7a 65 29 2f 32 30 29 2a | 32 30 20 2b 20 37 3b 0a |ze)/20)*|20 + 7;.|
|000063d0| 20 20 20 74 61 62 6c 65 | 2d 3e 6e 75 6d 5f 69 74 | table|->num_it|
|000063e0| 65 6d 73 20 20 20 20 3d | 20 30 3b 0a 20 20 20 74 |ems =| 0;. t|
|000063f0| 61 62 6c 65 2d 3e 61 72 | 65 5f 65 71 20 20 20 20 |able->ar|e_eq |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.