home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / sysadmin / pwgen.tar < prev    next >
Tape Archive  |  1989-03-04  |  16.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: pwgen.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file pwgen/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404056024 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 70 77 67 65 6e 2f 00 00 | 00 00 00 00 00 00 00 00 |pwgen/..|........|
|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 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 35 36 | 0 | 4404056|
|00000090| 30 32 34 20 20 20 35 31 | 33 32 00 20 00 00 00 00 |024 51|32. ....|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 00 00 00 |........|........|
|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| 70 77 67 65 6e 2f 53 68 | 61 72 46 69 6c 65 2e 48 |pwgen/Sh|arFile.H|
|00000210| 65 61 64 65 72 73 00 00 | 00 00 00 00 00 00 00 00 |eaders..|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 35 34 34 35 20 | 20 34 34 30 34 30 35 36 | 5445 | 4404056|
|00000290| 30 32 37 20 20 31 30 32 | 32 34 00 20 00 00 00 00 |027 102|24. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 70 77 67 65 | 6e 2e 73 68 61 72 20 3d |=== pwge|n.shar =|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 46 72 6f 6d 20 72 69 |========|.From ri|
|00000430| 61 63 73 21 65 6f 73 21 | 61 6d 65 73 21 6e 72 6c |acs!eos!|ames!nrl|
|00000440| 2d 63 6d 66 21 6d 61 69 | 6c 72 75 73 21 63 77 6a |-cmf!mai|lrus!cwj|
|00000450| 63 63 21 68 61 6c 21 6e | 63 6f 61 73 74 21 61 6c |cc!hal!n|coast!al|
|00000460| 6c 62 65 72 79 20 53 75 | 6e 20 4e 6f 76 20 32 37 |lbery Su|n Nov 27|
|00000470| 20 31 31 3a 34 31 3a 34 | 30 20 50 53 54 20 31 39 | 11:41:4|0 PST 19|
|00000480| 38 38 0a 0a 50 6f 73 74 | 69 6e 67 2d 6e 75 6d 62 |88..Post|ing-numb|
|00000490| 65 72 3a 20 56 6f 6c 75 | 6d 65 20 35 2c 20 49 73 |er: Volu|me 5, Is|
|000004a0| 73 75 65 20 35 39 0a 53 | 75 62 6d 69 74 74 65 64 |sue 59.S|ubmitted|
|000004b0| 2d 62 79 3a 20 22 42 72 | 61 6e 64 6f 6e 20 53 2e |-by: "Br|andon S.|
|000004c0| 20 41 6c 6c 62 65 72 79 | 22 20 3c 61 6c 6c 62 65 | Allbery|" <allbe|
|000004d0| 72 79 40 6e 63 6f 61 73 | 74 2e 55 55 43 50 3e 0a |ry@ncoas|t.UUCP>.|
|000004e0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 70 77 |Archive-|name: pw|
|000004f0| 67 65 6e 0a 0a 5b 44 72 | 2e 20 4a 65 6b 79 6c 6c |gen..[Dr|. Jekyll|
|00000500| 20 61 6e 64 20 4d 72 2e | 20 48 79 64 65 2c 20 61 | and Mr.| Hyde, a|
|00000510| 6e 79 6f 6e 65 3f 20 20 | 3b 2d 29 20 20 2b 2b 62 |nyone? |;-) ++b|
|00000520| 73 61 5d 0a 0a 49 27 76 | 65 20 64 65 73 63 72 69 |sa]..I'v|e descri|
|00000530| 62 65 64 20 74 68 69 73 | 20 70 72 6f 67 72 61 6d |bed this| program|
|00000540| 2c 20 69 6e 20 69 74 73 | 20 4f 53 49 20 53 75 70 |, in its| OSI Sup|
|00000550| 65 72 62 6f 61 72 64 2d | 49 49 20 69 6e 63 61 72 |erboard-|II incar|
|00000560| 6e 61 74 69 6f 6e 2c 20 | 69 6e 0a 63 6f 6d 70 2e |nation, |in.comp.|
|00000570| 75 6e 69 78 2e 77 69 7a | 61 72 64 73 20 61 6e 64 |unix.wiz|ards and|
|00000580| 20 6e 65 77 73 2e 73 79 | 73 61 64 6d 69 6e 2e 20 | news.sy|sadmin. |
|00000590| 20 4e 6f 77 2c 20 68 65 | 72 65 27 73 20 74 68 65 | Now, he|re's the|
|000005a0| 20 63 6f 64 65 20 66 6f | 72 20 61 20 55 4e 2a 58 | code fo|r a UN*X|
|000005b0| 0a 76 65 72 73 69 6f 6e | 2e 20 20 49 74 20 73 65 |.version|. It se|
|000005c0| 65 6d 73 20 74 6f 20 77 | 6f 72 6b 20 4f 4b 20 6f |ems to w|ork OK o|
|000005d0| 6e 20 6e 63 6f 61 73 74 | 2c 20 65 78 63 65 70 74 |n ncoast|, except|
|000005e0| 20 66 6f 72 20 73 6f 6d | 65 20 6f 64 64 6e 65 73 | for som|e oddnes|
|000005f0| 73 20 69 6e 20 74 68 65 | 0a 22 72 61 6e 64 6f 6d |s in the|."random|
|00000600| 22 20 73 65 6c 65 63 74 | 69 6f 6e 73 20 2d 2d 20 |" select|ions -- |
|00000610| 77 68 69 63 68 20 61 72 | 65 20 70 72 6f 62 61 62 |which ar|e probab|
|00000620| 6c 79 20 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |ly the r|esult of|
|00000630| 20 6f 75 72 20 6e 6f 74 | 20 68 61 76 69 6e 67 20 | our not| having |
|00000640| 61 0a 67 6f 6f 64 20 52 | 4e 47 2e 20 20 28 43 6f |a.good R|NG. (Co|
|00000650| 75 6c 64 20 73 6f 6d 65 | 6f 6e 65 20 6d 61 69 6c |uld some|one mail|
|00000660| 20 6d 65 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 | me one |or more |
|00000670| 6f 66 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 69 |of the a|lternati|
|00000680| 76 65 0a 67 65 6e 65 72 | 61 74 6f 72 73 3f 20 20 |ve.gener|ators? |
|00000690| 4f 72 20 6d 61 79 62 65 | 20 65 76 65 6e 20 74 68 |Or maybe| even th|
|000006a0| 65 20 73 6f 75 72 63 65 | 20 74 6f 20 42 53 44 20 |e source| to BSD |
|000006b0| 72 61 6e 64 6f 6d 28 29 | 2c 20 61 73 73 75 6d 69 |random()|, assumi|
|000006c0| 6e 67 20 74 68 61 74 20 | 69 74 0a 66 61 6c 6c 73 |ng that |it.falls|
|000006d0| 20 6f 75 74 73 69 64 65 | 20 74 68 65 20 73 75 62 | outside| the sub|
|000006e0| 73 65 74 20 6f 66 20 42 | 53 44 20 63 6f 64 65 20 |set of B|SD code |
|000006f0| 74 68 61 74 20 63 61 6e | 20 62 65 20 74 72 61 63 |that can| be trac|
|00000700| 65 64 20 74 6f 20 41 54 | 26 54 3f 20 20 54 6f 20 |ed to AT|&T? To |
|00000710| 70 75 74 20 69 74 0a 6d | 69 6c 64 6c 79 2c 20 6f |put it.m|ildly, o|
|00000720| 75 72 20 72 61 6e 64 6f | 6d 20 6e 75 6d 62 65 72 |ur rando|m number|
|00000730| 20 67 65 6e 65 72 61 74 | 6f 72 20 69 73 6e 27 74 | generat|or isn't|
|00000740| 2e 29 0a 0a 54 68 69 73 | 20 69 73 20 6e 6f 74 20 |.)..This| is not |
|00000750| 61 73 20 63 6f 6d 70 6c | 65 74 65 20 61 73 20 74 |as compl|ete as t|
|00000760| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 70 72 6f 67 |he origi|nal prog|
|00000770| 72 61 6d 2c 20 77 68 69 | 63 68 20 61 63 74 75 61 |ram, whi|ch actua|
|00000780| 6c 6c 79 20 68 61 64 20 | 61 20 6c 69 73 74 0a 6f |lly had |a list.o|
|00000790| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 28 74 68 |f charac|ters (th|
|000007a0| 65 20 63 75 72 72 65 6e | 74 20 6f 6e 65 20 75 73 |e curren|t one us|
|000007b0| 65 73 20 70 68 6f 6e 65 | 6d 65 73 29 20 77 68 69 |es phone|mes) whi|
|000007c0| 63 68 20 77 65 72 65 20 | 6d 6f 73 74 20 6c 69 6b |ch were |most lik|
|000007d0| 65 6c 79 20 74 6f 0a 66 | 6f 6c 6c 6f 77 20 6f 74 |ely to.f|ollow ot|
|000007e0| 68 65 72 20 70 68 6f 6e | 65 6d 65 73 2e 20 20 4f |her phon|emes. O|
|000007f0| 6e 20 74 68 65 20 6f 74 | 68 65 72 20 68 61 6e 64 |n the ot|her hand|
|00000800| 2c 20 74 68 69 73 20 76 | 65 72 73 69 6f 6e 20 64 |, this v|ersion d|
|00000810| 6f 65 73 20 75 73 65 20 | 70 68 6f 6e 65 6d 65 73 |oes use |phonemes|
|00000820| 0a 72 61 74 68 65 72 20 | 74 68 61 6e 20 63 68 61 |.rather |than cha|
|00000830| 72 61 63 74 65 72 73 2c | 20 73 6f 20 69 74 73 20 |racters,| so its |
|00000840| 63 72 65 61 74 69 6f 6e | 73 20 61 72 65 20 6d 6f |creation|s are mo|
|00000850| 72 65 20 70 72 6f 6e 6f | 75 6e 63 65 61 62 6c 65 |re prono|unceable|
|00000860| 20 61 73 20 61 20 72 75 | 6c 65 0a 74 68 61 6e 20 | as a ru|le.than |
|00000870| 74 68 6f 73 65 20 6f 66 | 20 74 68 65 20 6f 72 69 |those of| the ori|
|00000880| 67 69 6e 61 6c 2e 20 20 | 54 68 65 20 72 65 73 75 |ginal. |The resu|
|00000890| 6c 74 69 6e 67 20 70 61 | 73 73 77 6f 72 64 73 20 |lting pa|sswords |
|000008a0| 61 72 65 6e 27 74 20 71 | 75 69 74 65 20 61 73 0a |aren't q|uite as.|
|000008b0| 22 6e 61 74 75 72 61 6c | 22 20 61 73 20 74 68 65 |"natural|" as the|
|000008c0| 20 6f 72 69 67 69 6e 61 | 6c 2c 20 68 6f 77 65 76 | origina|l, howev|
|000008d0| 65 72 2e 20 20 28 54 68 | 61 74 20 6d 61 79 20 62 |er. (Th|at may b|
|000008e0| 65 20 66 6f 72 20 74 68 | 65 20 62 65 73 74 3b 20 |e for th|e best; |
|000008f0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 0a 77 61 73 |the orig|inal.was|
|00000900| 20 69 6e 74 65 6e 64 65 | 64 20 61 73 20 61 20 73 | intende|d as a s|
|00000910| 69 6d 70 6c 65 20 65 78 | 70 65 72 69 6d 65 6e 74 |imple ex|periment|
|00000920| 20 74 6f 20 73 65 65 20 | 69 66 20 61 20 72 75 6c | to see |if a rul|
|00000930| 65 20 66 6f 72 20 22 70 | 72 6f 70 65 72 20 45 6e |e for "p|roper En|
|00000940| 67 6c 69 73 68 0a 77 6f | 72 64 73 22 20 63 6f 75 |glish.wo|rds" cou|
|00000950| 6c 64 20 62 65 20 64 65 | 66 69 6e 65 64 20 69 6e |ld be de|fined in|
|00000960| 20 74 65 72 6d 73 20 6f | 66 20 72 75 6c 65 73 20 | terms o|f rules |
|00000970| 77 68 69 63 68 20 72 65 | 6c 61 74 65 64 20 6c 65 |which re|lated le|
|00000980| 74 74 65 72 73 2e 20 20 | 54 68 69 73 20 77 61 73 |tters. |This was|
|00000990| 0a 62 65 66 6f 72 65 20 | 49 20 67 6f 74 20 74 6f |.before |I got to|
|000009a0| 20 63 6f 6c 6c 65 67 65 | 20 61 6e 64 20 6c 65 61 | college| and lea|
|000009b0| 72 6e 65 64 20 74 68 61 | 74 20 73 75 63 68 20 74 |rned tha|t such t|
|000009c0| 68 69 6e 67 73 20 77 65 | 72 65 20 72 61 74 68 65 |hings we|re rathe|
|000009d0| 72 20 75 6e 6c 69 6b 65 | 6c 79 2c 0a 62 75 74 20 |r unlike|ly,.but |
|000009e0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 70 72 6f |the orig|inal pro|
|000009f0| 67 72 61 6d 20 73 74 69 | 6c 6c 20 64 69 64 20 61 |gram sti|ll did a|
|00000a00| 20 70 72 65 74 74 79 20 | 67 6f 6f 64 20 6a 6f 62 | pretty |good job|
|00000a10| 20 6f 66 20 73 70 65 77 | 69 6e 67 20 6f 75 74 20 | of spew|ing out |
|00000a20| 73 6f 6d 65 0a 63 6f 6d | 6d 6f 6e 20 45 6e 67 6c |some.com|mon Engl|
|00000a30| 69 73 68 20 77 6f 72 64 | 73 2e 20 20 54 68 61 74 |ish word|s. That|
|00000a40| 20 63 61 6e 27 74 20 62 | 65 20 73 61 69 64 20 66 | can't b|e said f|
|00000a50| 6f 72 20 2a 74 68 69 73 | 2a 20 70 72 6f 67 72 61 |or *this|* progra|
|00000a60| 6d 2e 29 0a 0a 54 6f 20 | 63 6f 6d 70 69 6c 65 3a |m.)..To |compile:|
|00000a70| 09 63 63 20 2d 4f 20 2d | 6f 20 70 77 67 65 6e 20 |.cc -O -|o pwgen |
|00000a80| 70 77 67 65 6e 2e 63 20 | 2d 6c 6d 0a 28 54 68 65 |pwgen.c |-lm.(The|
|00000a90| 20 73 71 72 74 28 29 20 | 66 75 6e 63 74 69 6f 6e | sqrt() |function|
|00000aa0| 20 69 73 20 75 73 65 64 | 20 69 6e 20 61 6e 20 61 | is used| in an a|
|00000ab0| 74 74 65 6d 70 74 20 74 | 6f 20 70 72 6f 64 75 63 |ttempt t|o produc|
|00000ac0| 65 20 61 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |e a rand|om numbe|
|00000ad0| 72 20 77 68 69 63 68 0a | 69 73 20 22 77 65 69 67 |r which.|is "weig|
|00000ae0| 68 74 65 64 22 20 74 6f | 77 61 72 64 20 6f 6e 65 |hted" to|ward one|
|00000af0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 72 61 6e 67 | end of |the rang|
|00000b00| 65 2c 20 73 6f 20 61 73 | 20 74 6f 20 70 72 65 66 |e, so as| to pref|
|00000b10| 65 72 20 6f 6e 65 20 65 | 6e 64 20 6f 66 20 61 20 |er one e|nd of a |
|00000b20| 6c 69 73 74 0a 6f 66 20 | 22 73 70 65 6c 6c 69 6e |list.of |"spellin|
|00000b30| 67 73 22 20 66 6f 72 20 | 61 20 70 68 6f 6e 65 6d |gs" for |a phonem|
|00000b40| 65 20 6f 76 65 72 20 74 | 68 65 20 6f 74 68 65 72 |e over t|he other|
|00000b50| 20 65 6e 64 2e 20 20 49 | 74 20 73 65 65 6d 73 20 | end. I|t seems |
|00000b60| 74 6f 20 77 6f 72 6b 2c | 20 62 75 74 20 77 69 74 |to work,| but wit|
|00000b70| 68 0a 74 68 69 73 20 72 | 6f 74 74 65 64 20 52 4e |h.this r|otted RN|
|00000b80| 47 2c 20 49 20 63 61 6e | 27 74 20 62 65 20 61 62 |G, I can|'t be ab|
|00000b90| 73 6f 6c 75 74 65 6c 79 | 20 63 65 72 74 61 69 6e |solutely| certain|
|00000ba0| 2e 20 20 41 20 74 72 69 | 61 6c 20 64 69 73 74 72 |. A tri|al distr|
|00000bb0| 69 62 75 74 69 6f 6e 20 | 73 65 65 6d 73 0a 74 6f |ibution |seems.to|
|00000bc0| 20 62 65 20 63 6f 72 72 | 65 63 74 2c 20 68 6f 77 | be corr|ect, how|
|00000bd0| 65 76 65 72 2e 29 0a 0a | 57 68 61 74 27 73 20 74 |ever.)..|What's t|
|00000be0| 68 65 20 69 6e 74 65 6e | 74 3f 20 20 49 20 66 69 |he inten|t? I fi|
|00000bf0| 6e 64 20 74 68 61 74 20 | 49 20 63 61 6e 20 72 65 |nd that |I can re|
|00000c00| 6d 65 6d 62 65 72 20 61 | 20 22 77 6f 72 64 22 20 |member a| "word" |
|00000c10| 62 65 74 74 65 72 20 69 | 66 20 49 20 63 61 6e 0a |better i|f I can.|
|00000c20| 70 72 6f 6e 6f 75 6e 63 | 65 20 69 74 2e 20 20 54 |pronounc|e it. T|
|00000c30| 68 69 73 20 6d 61 79 20 | 6f 72 20 6d 61 79 20 6e |his may |or may n|
|00000c40| 6f 74 20 62 65 20 74 72 | 75 65 20 66 6f 72 20 6f |ot be tr|ue for o|
|00000c50| 74 68 65 72 20 70 65 6f | 70 6c 65 2c 20 62 75 74 |ther peo|ple, but|
|00000c60| 20 2a 61 6e 79 74 68 69 | 6e 67 2a 0a 74 68 61 74 | *anythi|ng*.that|
|00000c70| 20 65 6e 63 6f 75 72 61 | 67 65 73 20 74 68 65 20 | encoura|ges the |
|00000c80| 75 73 65 20 6f 66 20 72 | 61 6e 64 6f 6d 20 70 61 |use of r|andom pa|
|00000c90| 73 73 77 6f 72 64 73 20 | 69 73 20 61 6e 20 69 6d |sswords |is an im|
|00000ca0| 70 72 6f 76 65 6d 65 6e | 74 20 6f 6e 20 77 68 61 |provemen|t on wha|
|00000cb0| 74 20 49 0a 74 79 70 69 | 63 61 6c 6c 79 20 73 65 |t I.typi|cally se|
|00000cc0| 65 20 61 74 20 63 6c 69 | 65 6e 74 20 73 69 74 65 |e at cli|ent site|
|00000cd0| 73 20 65 76 65 72 79 20 | 64 61 79 2e 20 20 53 6f |s every |day. So|
|00000ce0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 73 70 | this pr|ogram sp|
|00000cf0| 69 74 73 20 6f 75 74 0a | 70 61 73 73 77 6f 72 64 |its out.|password|
|00000d00| 73 20 77 68 69 63 68 20 | 61 72 65 20 76 69 72 74 |s which |are virt|
|00000d10| 75 61 6c 6c 79 20 67 75 | 61 72 61 6e 74 65 65 64 |ually gu|aranteed|
|00000d20| 20 6e 6f 74 20 74 6f 20 | 62 65 20 66 6f 75 6e 64 | not to |be found|
|00000d30| 20 69 6e 20 74 68 65 20 | 64 69 63 74 69 6f 6e 61 | in the |dictiona|
|00000d40| 72 79 2c 0a 62 75 74 20 | 61 72 65 20 28 75 73 75 |ry,.but |are (usu|
|00000d50| 61 6c 6c 79 29 20 70 72 | 6f 6e 6f 75 6e 63 65 61 |ally) pr|onouncea|
|00000d60| 62 6c 65 20 74 6f 20 73 | 70 65 61 6b 65 72 73 20 |ble to s|peakers |
|00000d70| 6f 66 20 45 6e 67 6c 69 | 73 68 2e 20 20 28 54 68 |of Engli|sh. (Th|
|00000d80| 65 20 74 61 62 6c 65 73 | 20 63 61 6e 20 62 65 0a |e tables| can be.|
|00000d90| 6d 6f 64 69 66 69 65 64 | 20 66 6f 72 20 6f 74 68 |modified| for oth|
|00000da0| 65 72 20 6c 61 6e 67 75 | 61 67 65 73 2c 20 62 75 |er langu|ages, bu|
|00000db0| 74 20 74 68 65 79 27 72 | 65 20 72 61 74 68 65 72 |t they'r|e rather|
|00000dc0| 20 68 61 69 72 79 2e 20 | 20 50 65 72 68 61 70 73 | hairy. | Perhaps|
|00000dd0| 20 49 27 6c 6c 20 77 72 | 69 74 65 0a 61 20 76 65 | I'll wr|ite.a ve|
|00000de0| 72 73 69 6f 6e 20 77 68 | 69 63 68 20 6c 6f 61 64 |rsion wh|ich load|
|00000df0| 73 20 22 63 6f 6d 70 69 | 6c 65 64 22 20 6c 61 6e |s "compi|led" lan|
|00000e00| 67 75 61 67 65 20 64 65 | 73 63 72 69 70 74 69 6f |guage de|scriptio|
|00000e10| 6e 73 2c 20 61 6e 64 20 | 6c 65 74 20 74 68 65 20 |ns, and |let the |
|00000e20| 63 6f 6d 70 69 6c 65 72 | 0a 64 65 61 6c 20 77 69 |compiler|.deal wi|
|00000e30| 74 68 20 74 68 65 20 68 | 61 69 72 79 20 73 74 75 |th the h|airy stu|
|00000e40| 66 66 2e 20 20 48 65 79 | 2c 20 74 68 65 79 20 77 |ff. Hey|, they w|
|00000e50| 65 72 65 20 65 76 65 6e | 20 68 61 69 72 69 65 72 |ere even| hairier|
|00000e60| 20 69 6e 20 74 68 65 20 | 42 41 53 49 43 0a 76 65 | in the |BASIC.ve|
|00000e70| 72 73 69 6f 6e 21 29 0a | 0a 4f 68 2c 20 77 65 6c |rsion!).|.Oh, wel|
|00000e80| 6c 2c 20 73 68 61 72 20 | 61 6e 64 20 65 6e 6a 6f |l, shar |and enjo|
|00000e90| 79 2e 0a 0a 2b 2b 42 72 | 61 6e 64 6f 6e 2c 20 73 |y...++Br|andon, s|
|00000ea0| 69 74 74 69 6e 67 20 6f | 6e 20 74 68 65 20 6f 74 |itting o|n the ot|
|00000eb0| 68 65 72 20 73 69 64 65 | 20 6f 66 20 74 68 65 20 |her side| of the |
|00000ec0| 66 65 6e 63 65 20 66 6f | 72 20 74 68 65 20 6d 6f |fence fo|r the mo|
|00000ed0| 6d 65 6e 74 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ment.---|--------|
|00000ee0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f20| 2d 2d 2d 2d 0a 00 00 00 | 00 00 00 00 00 00 00 00 |----....|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 70 77 67 65 6e 2f 70 77 | 67 65 6e 2e 63 00 00 00 |pwgen/pw|gen.c...|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001080| 20 20 31 36 35 30 36 20 | 20 34 34 30 34 30 35 36 | 16506 | 4404056|
|00001090| 30 32 36 20 20 20 36 35 | 33 35 00 20 00 00 00 00 |026 65|35. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 2f 2a 0a 20 2a 20 47 65 | 6e 65 72 61 74 65 20 28 |/*. * Ge|nerate (|
|00001210| 68 6f 70 65 66 75 6c 6c | 79 29 20 70 72 6f 6e 6f |hopefull|y) prono|
|00001220| 75 6e 63 65 61 62 6c 65 | 20 72 61 6e 64 6f 6d 20 |unceable| random |
|00001230| 70 61 73 73 77 6f 72 64 | 73 2e 20 20 54 68 65 73 |password|s. Thes|
|00001240| 65 20 63 61 6e 20 6f 66 | 74 65 6e 20 62 65 0a 20 |e can of|ten be. |
|00001250| 2a 20 72 65 6d 65 6d 62 | 65 72 65 64 20 6d 6f 72 |* rememb|ered mor|
|00001260| 65 20 65 61 73 69 6c 79 | 20 74 68 61 6e 20 63 6f |e easily| than co|
|00001270| 6d 70 6c 65 74 65 6c 79 | 20 72 61 6e 64 6f 6d 20 |mpletely| random |
|00001280| 70 61 73 73 77 6f 72 64 | 73 2c 20 61 6e 64 20 61 |password|s, and a|
|00001290| 72 65 20 69 6d 6d 75 6e | 65 20 74 6f 0a 20 2a 20 |re immun|e to. * |
|000012a0| 64 69 63 74 69 6f 6e 61 | 72 79 20 73 65 61 72 63 |dictiona|ry searc|
|000012b0| 68 65 73 2c 20 65 74 63 | 2e 0a 20 2a 0a 20 2a 20 |hes, etc|.. *. * |
|000012c0| 54 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 76 65 72 |The orig|inal ver|
|000012d0| 73 69 6f 6e 20 6f 66 20 | 74 68 69 73 20 70 72 6f |sion of |this pro|
|000012e0| 67 72 61 6d 20 77 61 73 | 20 77 72 69 74 74 65 6e |gram was| written|
|000012f0| 20 69 6e 20 42 41 53 49 | 43 20 6f 6e 20 61 6e 20 | in BASI|C on an |
|00001300| 4f 53 49 0a 20 2a 20 53 | 75 70 65 72 62 6f 61 72 |OSI. * S|uperboar|
|00001310| 64 20 49 49 20 53 42 43 | 2e 20 20 54 68 61 74 20 |d II SBC|. That |
|00001320| 76 65 72 73 69 6f 6e 20 | 69 73 20 6c 6f 6e 67 20 |version |is long |
|00001330| 67 6f 6e 65 20 28 74 68 | 65 20 53 42 32 27 73 20 |gone (th|e SB2's |
|00001340| 63 61 73 73 65 74 74 65 | 20 64 72 69 76 65 0a 20 |cassette| drive. |
|00001350| 2a 20 77 61 73 20 6e 65 | 76 65 72 20 74 72 75 73 |* was ne|ver trus|
|00001360| 74 77 6f 72 74 68 79 2c | 20 69 74 20 65 76 65 6e |tworthy,| it even|
|00001370| 74 75 61 6c 6c 79 20 73 | 63 72 61 6d 62 6c 65 64 |tually s|crambled|
|00001380| 20 74 68 65 20 74 61 70 | 65 29 2c 20 62 75 74 20 | the tap|e), but |
|00001390| 74 68 65 20 62 61 73 69 | 63 0a 20 2a 20 28 70 61 |the basi|c. * (pa|
|000013a0| 72 64 6f 6e 20 74 68 65 | 20 70 75 6e 29 20 69 64 |rdon the| pun) id|
|000013b0| 65 61 20 6c 69 76 65 73 | 20 6f 6e 20 68 65 72 65 |ea lives| on here|
|000013c0| 2c 20 77 69 74 68 20 61 | 20 66 65 77 20 6d 6f 64 |, with a| few mod|
|000013d0| 69 66 69 63 61 74 69 6f | 6e 20 6c 69 6b 65 20 62 |ificatio|n like b|
|000013e0| 61 73 69 6e 67 0a 20 2a | 20 74 68 65 20 73 65 6c |asing. *| the sel|
|000013f0| 65 63 74 69 6f 6e 20 6f | 6e 20 22 67 72 61 70 68 |ection o|n "graph|
|00001400| 73 22 20 28 61 63 74 75 | 61 6c 6c 79 2c 20 74 68 |s" (actu|ally, th|
|00001410| 65 79 20 61 72 65 20 61 | 20 72 65 73 74 72 69 63 |ey are a| restric|
|00001420| 74 65 64 20 73 65 74 20 | 6f 66 20 70 68 6f 6e 65 |ted set |of phone|
|00001430| 6d 65 73 29 0a 20 2a 20 | 61 6e 64 20 68 61 76 69 |mes). * |and havi|
|00001440| 6e 67 20 72 61 6e 64 6f | 6d 6c 79 2d 73 65 6c 65 |ng rando|mly-sele|
|00001450| 63 74 65 64 20 73 70 65 | 6c 6c 69 6e 67 73 20 66 |cted spe|llings f|
|00001460| 6f 72 20 74 68 6f 73 65 | 20 67 72 61 70 68 73 2e |or those| graphs.|
|00001470| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |. */..#i|nclude <|
|00001480| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00001490| 65 20 3c 6d 61 74 68 2e | 68 3e 0a 0a 23 64 65 66 |e <math.|h>..#def|
|000014a0| 69 6e 65 20 52 41 4e 44 | 4f 4d 28 63 29 09 28 28 |ine RAND|OM(c).((|
|000014b0| 69 6e 74 29 20 28 72 61 | 6e 64 28 63 29 20 2f 20 |int) (ra|nd(c) / |
|000014c0| 33 32 37 36 37 2e 30 20 | 2a 20 28 63 29 29 29 0a |32767.0 |* (c))).|
|000014d0| 0a 63 68 61 72 20 2a 73 | 70 65 6c 6c 69 6e 67 5b |.char *s|pelling[|
|000014e0| 5d 20 3d 20 7b 0a 2f 2a | 61 2a 2f 09 22 61 22 2c |] = {./*|a*/."a",|
|000014f0| 09 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |....(cha|r *) 0,.|
|00001500| 2f 2a 20 32 2a 2f 0a 2f | 2a 41 2a 2f 09 22 61 22 |/* 2*/./|*A*/."a"|
|00001510| 2c 09 22 61 65 22 2c 09 | 22 61 69 22 2c 09 09 28 |,."ae",.|"ai",..(|
|00001520| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 20 36 2a |char *) |0,./* 6*|
|00001530| 2f 0a 2f 2a 62 2a 2f 09 | 22 62 22 2c 09 09 09 09 |/./*b*/.|"b",....|
|00001540| 28 63 68 61 72 20 2a 29 | 20 30 2c 09 2f 2a 20 38 |(char *)| 0,./* 8|
|00001550| 2a 2f 0a 2f 2a 63 68 2a | 2f 09 22 63 68 22 2c 09 |*/./*ch*|/."ch",.|
|00001560| 09 09 09 28 63 68 61 72 | 20 2a 29 20 30 2c 09 2f |...(char| *) 0,./|
|00001570| 2a 31 30 2a 2f 0a 2f 2a | 64 2a 2f 09 22 64 22 2c |*10*/./*|d*/."d",|
|00001580| 09 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |....(cha|r *) 0,.|
|00001590| 2f 2a 31 32 2a 2f 0a 2f | 2a 65 2a 2f 09 22 65 22 |/*12*/./|*e*/."e"|
|000015a0| 2c 09 09 09 09 28 63 68 | 61 72 20 2a 29 20 30 2c |,....(ch|ar *) 0,|
|000015b0| 09 2f 2a 31 34 2a 2f 0a | 2f 2a 45 2a 2f 09 22 65 |./*14*/.|/*E*/."e|
|000015c0| 22 2c 09 22 65 65 22 2c | 09 22 69 65 22 2c 09 09 |",."ee",|."ie",..|
|000015d0| 28 63 68 61 72 20 2a 29 | 20 30 2c 09 2f 2a 31 38 |(char *)| 0,./*18|
|000015e0| 2a 2f 0a 2f 2a 66 2a 2f | 09 22 66 22 2c 09 22 70 |*/./*f*/|."f",."p|
|000015f0| 68 22 2c 09 22 67 68 22 | 2c 09 09 28 63 68 61 72 |h",."gh"|,..(char|
|00001600| 20 2a 29 20 30 2c 09 2f | 2a 32 32 2a 2f 0a 2f 2a | *) 0,./|*22*/./*|
|00001610| 67 2a 2f 09 22 67 22 2c | 09 09 09 09 28 63 68 61 |g*/."g",|....(cha|
|00001620| 72 20 2a 29 20 30 2c 09 | 2f 2a 32 34 2a 2f 0a 2f |r *) 0,.|/*24*/./|
|00001630| 2a 68 2a 2f 09 22 68 22 | 2c 09 09 09 09 28 63 68 |*h*/."h"|,....(ch|
|00001640| 61 72 20 2a 29 20 30 2c | 09 2f 2a 32 36 2a 2f 0a |ar *) 0,|./*26*/.|
|00001650| 2f 2a 69 2a 2f 09 22 69 | 22 2c 09 22 65 22 2c 09 |/*i*/."i|",."e",.|
|00001660| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00001670| 32 39 2a 2f 0a 2f 2a 49 | 2a 2f 09 22 69 22 2c 09 |29*/./*I|*/."i",.|
|00001680| 22 61 69 22 2c 09 09 09 | 28 63 68 61 72 20 2a 29 |"ai",...|(char *)|
|00001690| 20 30 2c 09 2f 2a 33 32 | 2a 2f 0a 2f 2a 69 27 2a | 0,./*32|*/./*i'*|
|000016a0| 2f 09 22 69 22 2c 09 22 | 65 69 22 2c 09 09 09 28 |/."i",."|ei",...(|
|000016b0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 33 35 2a |char *) |0,./*35*|
|000016c0| 2f 0a 2f 2a 6a 2a 2f 09 | 22 6a 22 2c 09 22 67 22 |/./*j*/.|"j",."g"|
|000016d0| 2c 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |,...(cha|r *) 0,.|
|000016e0| 2f 2a 33 38 2a 2f 0a 2f | 2a 6b 2a 2f 09 22 6b 22 |/*38*/./|*k*/."k"|
|000016f0| 2c 09 22 63 22 2c 09 09 | 09 28 63 68 61 72 20 2a |,."c",..|.(char *|
|00001700| 29 20 30 2c 09 2f 2a 34 | 31 2a 2f 0a 2f 2a 6c 2a |) 0,./*4|1*/./*l*|
|00001710| 2f 09 22 6c 22 2c 09 09 | 09 09 28 63 68 61 72 20 |/."l",..|..(char |
|00001720| 2a 29 20 30 2c 09 2f 2a | 34 33 2a 2f 0a 2f 2a 6d |*) 0,./*|43*/./*m|
|00001730| 2a 2f 09 22 6d 22 2c 09 | 09 09 09 28 63 68 61 72 |*/."m",.|...(char|
|00001740| 20 2a 29 20 30 2c 09 2f | 2a 34 35 2a 2f 0a 2f 2a | *) 0,./|*45*/./*|
|00001750| 6e 2a 2f 09 22 6e 22 2c | 09 09 09 09 28 63 68 61 |n*/."n",|....(cha|
|00001760| 72 20 2a 29 20 30 2c 09 | 2f 2a 34 37 2a 2f 0a 2f |r *) 0,.|/*47*/./|
|00001770| 2a 6e 67 2a 2f 09 22 6e | 67 22 2c 09 09 09 09 28 |*ng*/."n|g",....(|
|00001780| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 34 39 2a |char *) |0,./*49*|
|00001790| 2f 0a 2f 2a 6f 2a 2f 09 | 22 6f 22 2c 09 22 61 22 |/./*o*/.|"o",."a"|
|000017a0| 2c 09 22 61 68 22 2c 09 | 09 28 63 68 61 72 20 2a |,."ah",.|.(char *|
|000017b0| 29 20 30 2c 09 2f 2a 35 | 33 2a 2f 0a 2f 2a 4f 2a |) 0,./*5|3*/./*O*|
|000017c0| 2f 09 22 6f 22 2c 09 22 | 6f 68 22 2c 09 09 09 28 |/."o",."|oh",...(|
|000017d0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 35 36 2a |char *) |0,./*56*|
|000017e0| 2f 0a 2f 2a 6f 6f 2a 2f | 09 22 6f 6f 22 2c 09 22 |/./*oo*/|."oo",."|
|000017f0| 75 22 2c 09 09 09 28 63 | 68 61 72 20 2a 29 20 30 |u",...(c|har *) 0|
|00001800| 2c 09 2f 2a 35 39 2a 2f | 0a 2f 2a 4f 4f 2a 2f 09 |,./*59*/|./*OO*/.|
|00001810| 22 6f 6f 22 2c 09 22 77 | 22 2c 09 09 09 28 63 68 |"oo",."w|",...(ch|
|00001820| 61 72 20 2a 29 20 30 2c | 09 2f 2a 36 32 2a 2f 0a |ar *) 0,|./*62*/.|
|00001830| 2f 2a 70 2a 2f 09 22 70 | 22 2c 09 09 09 09 28 63 |/*p*/."p|",....(c|
|00001840| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 36 34 2a 2f |har *) 0|,./*64*/|
|00001850| 0a 2f 2a 71 75 2a 2f 09 | 22 71 75 22 2c 09 09 09 |./*qu*/.|"qu",...|
|00001860| 09 28 63 68 61 72 20 2a | 29 20 30 2c 09 2f 2a 36 |.(char *|) 0,./*6|
|00001870| 36 2a 2f 0a 2f 2a 72 2a | 2f 09 22 72 22 2c 09 09 |6*/./*r*|/."r",..|
|00001880| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00001890| 36 38 2a 2f 0a 2f 2a 73 | 2a 2f 09 22 73 22 2c 09 |68*/./*s|*/."s",.|
|000018a0| 22 63 22 2c 09 09 09 28 | 63 68 61 72 20 2a 29 20 |"c",...(|char *) |
|000018b0| 30 2c 09 2f 2a 37 31 2a | 2f 0a 2f 2a 73 68 2a 2f |0,./*71*|/./*sh*/|
|000018c0| 09 22 73 68 22 2c 09 22 | 73 22 2c 09 09 09 28 63 |."sh",."|s",...(c|
|000018d0| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 37 34 2a 2f |har *) 0|,./*74*/|
|000018e0| 0a 2f 2a 74 2a 2f 09 22 | 74 22 2c 09 09 09 09 28 |./*t*/."|t",....(|
|000018f0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 37 36 2a |char *) |0,./*76*|
|00001900| 2f 0a 2f 2a 74 68 2a 2f | 09 22 74 68 22 2c 09 09 |/./*th*/|."th",..|
|00001910| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00001920| 37 38 2a 2f 0a 2f 2a 54 | 48 2a 2f 09 22 74 68 22 |78*/./*T|H*/."th"|
|00001930| 2c 09 09 09 09 28 63 68 | 61 72 20 2a 29 20 30 2c |,....(ch|ar *) 0,|
|00001940| 09 2f 2a 38 30 2a 2f 0a | 2f 2a 75 2a 2f 09 22 75 |./*80*/.|/*u*/."u|
|00001950| 22 2c 09 09 09 09 28 63 | 68 61 72 20 2a 29 20 30 |",....(c|har *) 0|
|00001960| 2c 09 2f 2a 38 32 2a 2f | 0a 2f 2a 55 2a 2f 09 22 |,./*82*/|./*U*/."|
|00001970| 75 22 2c 09 22 6f 6f 22 | 2c 09 09 09 28 63 68 61 |u",."oo"|,...(cha|
|00001980| 72 20 2a 29 20 30 2c 09 | 2f 2a 38 35 2a 2f 0a 2f |r *) 0,.|/*85*/./|
|00001990| 2a 76 2a 2f 09 22 76 22 | 2c 09 09 09 09 28 63 68 |*v*/."v"|,....(ch|
|000019a0| 61 72 20 2a 29 20 30 2c | 09 2f 2a 38 37 2a 2f 0a |ar *) 0,|./*87*/.|
|000019b0| 2f 2a 78 2a 2f 09 22 78 | 22 2c 09 09 09 09 28 63 |/*x*/."x|",....(c|
|000019c0| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 38 39 2a 2f |har *) 0|,./*89*/|
|000019d0| 0a 2f 2a 79 2a 2f 09 22 | 79 22 2c 09 09 09 09 28 |./*y*/."|y",....(|
|000019e0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 39 31 2a |char *) |0,./*91*|
|000019f0| 2f 0a 2f 2a 7a 2a 2f 09 | 22 7a 22 2c 09 22 73 22 |/./*z*/.|"z",."s"|
|00001a00| 2c 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |,...(cha|r *) 0,.|
|00001a10| 2f 2a 39 34 2a 2f 0a 7d | 3b 0a 0a 73 74 72 75 63 |/*94*/.}|;..struc|
|00001a20| 74 20 67 72 61 70 68 20 | 7b 0a 09 63 68 61 72 20 |t graph |{..char |
|00001a30| 2a 67 72 61 70 68 3b 0a | 09 63 68 61 72 20 74 79 |*graph;.|.char ty|
|00001a40| 70 65 3b 0a 23 64 65 66 | 69 6e 65 20 43 4f 4e 53 |pe;.#def|ine CONS|
|00001a50| 4f 4e 41 4e 54 09 30 0a | 23 64 65 66 69 6e 65 20 |ONANT.0.|#define |
|00001a60| 56 4f 57 45 4c 5f 4c 4f | 4e 47 09 31 0a 23 64 65 |VOWEL_LO|NG.1.#de|
|00001a70| 66 69 6e 65 20 56 4f 57 | 45 4c 5f 53 48 4f 52 54 |fine VOW|EL_SHORT|
|00001a80| 09 32 0a 23 64 65 66 69 | 6e 65 20 56 4f 57 45 4c |.2.#defi|ne VOWEL|
|00001a90| 5f 4f 54 48 45 52 09 33 | 0a 23 64 65 66 69 6e 65 |_OTHER.3|.#define|
|00001aa0| 20 56 4f 57 45 4c 5f 4d | 41 53 4b 09 33 0a 23 64 | VOWEL_M|ASK.3.#d|
|00001ab0| 65 66 69 6e 65 20 69 73 | 63 6f 6e 73 28 63 29 09 |efine is|cons(c).|
|00001ac0| 28 28 28 63 29 2d 3e 74 | 79 70 65 20 26 20 56 4f |(((c)->t|ype & VO|
|00001ad0| 57 45 4c 5f 4d 41 53 4b | 29 20 3d 3d 20 30 29 0a |WEL_MASK|) == 0).|
|00001ae0| 23 64 65 66 69 6e 65 20 | 69 73 76 6f 77 65 6c 28 |#define |isvowel(|
|00001af0| 63 29 09 28 28 28 63 29 | 2d 3e 74 79 70 65 20 26 |c).(((c)|->type &|
|00001b00| 20 56 4f 57 45 4c 5f 4d | 41 53 4b 29 20 21 3d 20 | VOWEL_M|ASK) != |
|00001b10| 30 29 0a 2f 2a 09 63 68 | 61 72 20 66 72 65 71 75 |0)./*.ch|ar frequ|
|00001b20| 65 6e 63 79 3b 09 09 09 | 2a 2f 09 2f 2a 20 75 6e |ency;...|*/./* un|
|00001b30| 75 73 65 64 20 66 6f 72 | 20 6e 6f 77 20 2a 2f 0a |used for| now */.|
|00001b40| 09 63 68 61 72 20 2a 2a | 73 70 65 6c 6c 69 6e 67 |.char **|spelling|
|00001b50| 73 3b 0a 2f 2a 09 73 74 | 72 75 63 74 20 67 72 61 |s;./*.st|ruct gra|
|00001b60| 70 68 20 2a 2a 66 6f 6c | 6c 6f 77 69 6e 67 3b 09 |ph **fol|lowing;.|
|00001b70| 2a 2f 09 2f 2a 20 6d 61 | 79 62 65 20 6c 61 74 65 |*/./* ma|ybe late|
|00001b80| 72 20 2a 2f 0a 7d 20 67 | 72 61 70 68 5b 5d 20 3d |r */.} g|raph[] =|
|00001b90| 20 7b 0a 09 22 61 22 2c | 09 56 4f 57 45 4c 5f 53 | {.."a",|.VOWEL_S|
|00001ba0| 48 4f 52 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |HORT,.&s|pelling[|
|00001bb0| 30 5d 2c 0a 09 22 41 22 | 2c 09 56 4f 57 45 4c 5f |0],.."A"|,.VOWEL_|
|00001bc0| 4c 4f 4e 47 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |LONG,.&s|pelling[|
|00001bd0| 32 5d 2c 0a 09 22 62 22 | 2c 09 43 4f 4e 53 4f 4e |2],.."b"|,.CONSON|
|00001be0| 41 4e 54 2c 09 26 73 70 | 65 6c 6c 69 6e 67 5b 36 |ANT,.&sp|elling[6|
|00001bf0| 5d 2c 0a 09 22 63 68 22 | 2c 09 43 4f 4e 53 4f 4e |],.."ch"|,.CONSON|
|00001c00| 41 4e 54 2c 09 26 73 70 | 65 6c 6c 69 6e 67 5b 38 |ANT,.&sp|elling[8|
|00001c10| 5d 2c 0a 09 22 64 22 2c | 09 43 4f 4e 53 4f 4e 41 |],.."d",|.CONSONA|
|00001c20| 4e 54 2c 09 26 73 70 65 | 6c 6c 69 6e 67 5b 31 30 |NT,.&spe|lling[10|
|00001c30| 5d 2c 0a 09 22 65 22 2c | 09 56 4f 57 45 4c 5f 53 |],.."e",|.VOWEL_S|
|00001c40| 48 4f 52 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |HORT,.&s|pelling[|
|00001c50| 31 32 5d 2c 0a 09 22 45 | 22 2c 09 56 4f 57 45 4c |12],.."E|",.VOWEL|
|00001c60| 5f 4c 4f 4e 47 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |_LONG,.&|spelling|
|00001c70| 5b 31 34 5d 2c 0a 09 22 | 66 22 2c 09 43 4f 4e 53 |[14],.."|f",.CONS|
|00001c80| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001c90| 5b 31 38 5d 2c 0a 09 22 | 67 22 2c 09 43 4f 4e 53 |[18],.."|g",.CONS|
|00001ca0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001cb0| 5b 32 32 5d 2c 0a 09 22 | 68 22 2c 09 43 4f 4e 53 |[22],.."|h",.CONS|
|00001cc0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001cd0| 5b 32 34 5d 2c 0a 09 22 | 69 22 2c 09 56 4f 57 45 |[24],.."|i",.VOWE|
|00001ce0| 4c 5f 53 48 4f 52 54 2c | 09 26 73 70 65 6c 6c 69 |L_SHORT,|.&spelli|
|00001cf0| 6e 67 5b 32 36 5d 2c 0a | 09 22 49 22 2c 09 56 4f |ng[26],.|."I",.VO|
|00001d00| 57 45 4c 5f 4c 4f 4e 47 | 2c 09 26 73 70 65 6c 6c |WEL_LONG|,.&spell|
|00001d10| 69 6e 67 5b 32 39 5d 2c | 0a 09 22 69 27 22 2c 09 |ing[29],|.."i'",.|
|00001d20| 56 4f 57 45 4c 5f 4f 54 | 48 45 52 2c 09 26 73 70 |VOWEL_OT|HER,.&sp|
|00001d30| 65 6c 6c 69 6e 67 5b 33 | 32 5d 2c 0a 09 22 6a 22 |elling[3|2],.."j"|
|00001d40| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001d50| 65 6c 6c 69 6e 67 5b 33 | 35 5d 2c 0a 09 22 6b 22 |elling[3|5],.."k"|
|00001d60| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001d70| 65 6c 6c 69 6e 67 5b 33 | 38 5d 2c 0a 09 22 6c 22 |elling[3|8],.."l"|
|00001d80| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001d90| 65 6c 6c 69 6e 67 5b 34 | 31 5d 2c 0a 09 22 6d 22 |elling[4|1],.."m"|
|00001da0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001db0| 65 6c 6c 69 6e 67 5b 34 | 33 5d 2c 0a 09 22 6e 22 |elling[4|3],.."n"|
|00001dc0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001dd0| 65 6c 6c 69 6e 67 5b 34 | 35 5d 2c 0a 09 22 6e 67 |elling[4|5],.."ng|
|00001de0| 22 2c 09 43 4f 4e 53 4f | 4e 41 4e 54 2c 09 26 73 |",.CONSO|NANT,.&s|
|00001df0| 70 65 6c 6c 69 6e 67 5b | 34 37 5d 2c 0a 09 22 6f |pelling[|47],.."o|
|00001e00| 22 2c 09 56 4f 57 45 4c | 5f 53 48 4f 52 54 2c 09 |",.VOWEL|_SHORT,.|
|00001e10| 26 73 70 65 6c 6c 69 6e | 67 5b 34 39 5d 2c 0a 09 |&spellin|g[49],..|
|00001e20| 22 4f 22 2c 09 56 4f 57 | 45 4c 5f 4c 4f 4e 47 2c |"O",.VOW|EL_LONG,|
|00001e30| 09 26 73 70 65 6c 6c 69 | 6e 67 5b 35 33 5d 2c 0a |.&spelli|ng[53],.|
|00001e40| 09 22 6f 6f 22 2c 09 56 | 4f 57 45 4c 5f 53 48 4f |."oo",.V|OWEL_SHO|
|00001e50| 52 54 2c 09 26 73 70 65 | 6c 6c 69 6e 67 5b 35 36 |RT,.&spe|lling[56|
|00001e60| 5d 2c 0a 09 22 4f 4f 22 | 2c 09 56 4f 57 45 4c 5f |],.."OO"|,.VOWEL_|
|00001e70| 4c 4f 4e 47 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |LONG,.&s|pelling[|
|00001e80| 35 39 5d 2c 0a 09 22 70 | 22 2c 09 43 4f 4e 53 4f |59],.."p|",.CONSO|
|00001e90| 4e 41 4e 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |NANT,.&s|pelling[|
|00001ea0| 36 32 5d 2c 0a 09 22 71 | 75 22 2c 09 43 4f 4e 53 |62],.."q|u",.CONS|
|00001eb0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001ec0| 5b 36 34 5d 2c 0a 09 22 | 72 22 2c 09 43 4f 4e 53 |[64],.."|r",.CONS|
|00001ed0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001ee0| 5b 36 36 5d 2c 0a 09 22 | 73 22 2c 09 43 4f 4e 53 |[66],.."|s",.CONS|
|00001ef0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00001f00| 5b 36 38 5d 2c 0a 09 22 | 73 68 22 2c 09 43 4f 4e |[68],.."|sh",.CON|
|00001f10| 53 4f 4e 41 4e 54 2c 09 | 26 73 70 65 6c 6c 69 6e |SONANT,.|&spellin|
|00001f20| 67 5b 37 31 5d 2c 0a 09 | 22 74 22 2c 09 43 4f 4e |g[71],..|"t",.CON|
|00001f30| 53 4f 4e 41 4e 54 2c 09 | 26 73 70 65 6c 6c 69 6e |SONANT,.|&spellin|
|00001f40| 67 5b 37 34 5d 2c 0a 09 | 22 74 68 22 2c 09 43 4f |g[74],..|"th",.CO|
|00001f50| 4e 53 4f 4e 41 4e 54 2c | 09 26 73 70 65 6c 6c 69 |NSONANT,|.&spelli|
|00001f60| 6e 67 5b 37 36 5d 2c 0a | 09 22 54 48 22 2c 09 43 |ng[76],.|."TH",.C|
|00001f70| 4f 4e 53 4f 4e 41 4e 54 | 2c 09 26 73 70 65 6c 6c |ONSONANT|,.&spell|
|00001f80| 69 6e 67 5b 37 38 5d 2c | 0a 09 22 75 22 2c 09 56 |ing[78],|.."u",.V|
|00001f90| 4f 57 45 4c 5f 53 48 4f | 52 54 2c 09 26 73 70 65 |OWEL_SHO|RT,.&spe|
|00001fa0| 6c 6c 69 6e 67 5b 38 30 | 5d 2c 0a 09 22 55 22 2c |lling[80|],.."U",|
|00001fb0| 09 56 4f 57 45 4c 5f 4c | 4f 4e 47 2c 09 26 73 70 |.VOWEL_L|ONG,.&sp|
|00001fc0| 65 6c 6c 69 6e 67 5b 38 | 32 5d 2c 0a 09 22 76 22 |elling[8|2],.."v"|
|00001fd0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00001fe0| 65 6c 6c 69 6e 67 5b 38 | 35 5d 2c 0a 09 22 78 22 |elling[8|5],.."x"|
|00001ff0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00002000| 65 6c 6c 69 6e 67 5b 38 | 37 5d 2c 0a 09 22 79 22 |elling[8|7],.."y"|
|00002010| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00002020| 65 6c 6c 69 6e 67 5b 38 | 39 5d 2c 0a 09 22 7a 22 |elling[8|9],.."z"|
|00002030| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00002040| 65 6c 6c 69 6e 67 5b 39 | 31 5d 2c 0a 09 30 2c 09 |elling[9|1],..0,.|
|00002050| 30 2c 09 09 26 73 70 65 | 6c 6c 69 6e 67 5b 39 34 |0,..&spe|lling[94|
|00002060| 5d 2c 0a 7d 3b 0a 0a 73 | 74 72 75 63 74 20 67 72 |],.};..s|truct gr|
|00002070| 61 70 68 20 2a 76 6f 77 | 65 6c 5b 5d 20 3d 20 7b |aph *vow|el[] = {|
|00002080| 0a 09 26 67 72 61 70 68 | 5b 30 5d 2c 09 26 67 72 |..&graph|[0],.&gr|
|00002090| 61 70 68 5b 31 5d 2c 09 | 26 67 72 61 70 68 5b 35 |aph[1],.|&graph[5|
|000020a0| 5d 2c 09 26 67 72 61 70 | 68 5b 36 5d 2c 0a 09 26 |],.&grap|h[6],..&|
|000020b0| 67 72 61 70 68 5b 31 30 | 5d 2c 09 26 67 72 61 70 |graph[10|],.&grap|
|000020c0| 68 5b 31 31 5d 2c 09 26 | 67 72 61 70 68 5b 31 32 |h[11],.&|graph[12|
|000020d0| 5d 2c 09 26 67 72 61 70 | 68 5b 31 39 5d 2c 0a 09 |],.&grap|h[19],..|
|000020e0| 26 67 72 61 70 68 5b 32 | 30 5d 2c 09 26 67 72 61 |&graph[2|0],.&gra|
|000020f0| 70 68 5b 32 31 5d 2c 09 | 26 67 72 61 70 68 5b 32 |ph[21],.|&graph[2|
|00002100| 32 5d 2c 09 26 67 72 61 | 70 68 5b 33 30 5d 2c 0a |2],.&gra|ph[30],.|
|00002110| 09 26 67 72 61 70 68 5b | 33 31 5d 2c 0a 09 28 73 |.&graph[|31],..(s|
|00002120| 74 72 75 63 74 20 67 72 | 61 70 68 20 2a 29 20 30 |truct gr|aph *) 0|
|00002130| 2c 0a 7d 3b 0a 0a 73 74 | 72 75 63 74 20 67 72 61 |,.};..st|ruct gra|
|00002140| 70 68 20 2a 63 6f 6e 73 | 6f 6e 61 6e 74 5b 5d 20 |ph *cons|onant[] |
|00002150| 3d 20 7b 0a 09 26 67 72 | 61 70 68 5b 32 5d 2c 09 |= {..&gr|aph[2],.|
|00002160| 26 67 72 61 70 68 5b 33 | 5d 2c 09 26 67 72 61 70 |&graph[3|],.&grap|
|00002170| 68 5b 34 5d 2c 09 26 67 | 72 61 70 68 5b 37 5d 2c |h[4],.&g|raph[7],|
|00002180| 0a 09 26 67 72 61 70 68 | 5b 38 5d 2c 09 26 67 72 |..&graph|[8],.&gr|
|00002190| 61 70 68 5b 39 5d 2c 09 | 26 67 72 61 70 68 5b 31 |aph[9],.|&graph[1|
|000021a0| 33 5d 2c 09 26 67 72 61 | 70 68 5b 31 34 5d 2c 0a |3],.&gra|ph[14],.|
|000021b0| 09 26 67 72 61 70 68 5b | 31 35 5d 2c 09 26 67 72 |.&graph[|15],.&gr|
|000021c0| 61 70 68 5b 31 36 5d 2c | 09 26 67 72 61 70 68 5b |aph[16],|.&graph[|
|000021d0| 31 37 5d 2c 09 26 67 72 | 61 70 68 5b 31 38 5d 2c |17],.&gr|aph[18],|
|000021e0| 0a 09 26 67 72 61 70 68 | 5b 32 33 5d 2c 09 26 67 |..&graph|[23],.&g|
|000021f0| 72 61 70 68 5b 32 34 5d | 2c 09 26 67 72 61 70 68 |raph[24]|,.&graph|
|00002200| 5b 32 35 5d 2c 09 26 67 | 72 61 70 68 5b 32 36 5d |[25],.&g|raph[26]|
|00002210| 2c 0a 09 26 67 72 61 70 | 68 5b 32 37 5d 2c 09 26 |,..&grap|h[27],.&|
|00002220| 67 72 61 70 68 5b 32 38 | 5d 2c 09 26 67 72 61 70 |graph[28|],.&grap|
|00002230| 68 5b 32 39 5d 2c 09 26 | 67 72 61 70 68 5b 33 32 |h[29],.&|graph[32|
|00002240| 5d 2c 0a 09 26 67 72 61 | 70 68 5b 33 33 5d 2c 09 |],..&gra|ph[33],.|
|00002250| 26 67 72 61 70 68 5b 33 | 34 5d 2c 09 26 67 72 61 |&graph[3|4],.&gra|
|00002260| 70 68 5b 33 35 5d 2c 0a | 09 28 73 74 72 75 63 74 |ph[35],.|.(struct|
|00002270| 20 67 72 61 70 68 20 2a | 29 20 30 2c 0a 7d 3b 0a | graph *|) 0,.};.|
|00002280| 0a 2f 2a 0a 20 2a 20 52 | 61 6e 64 6f 6d 6c 79 20 |./*. * R|andomly |
|00002290| 73 65 6c 65 63 74 20 61 | 20 67 72 61 70 68 20 66 |select a| graph f|
|000022a0| 72 6f 6d 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |rom the |specifie|
|000022b0| 6c 64 20 61 72 72 61 79 | 2e 20 20 45 76 65 6e 74 |ld array|. Event|
|000022c0| 75 61 6c 6c 79 2c 20 74 | 68 69 73 20 73 68 6f 75 |ually, t|his shou|
|000022d0| 6c 64 0a 20 2a 20 61 63 | 63 6f 75 6e 74 20 66 6f |ld. * ac|count fo|
|000022e0| 72 20 67 72 61 70 68 20 | 66 72 65 71 75 65 6e 63 |r graph |frequenc|
|000022f0| 69 65 73 20 61 73 20 77 | 65 6c 6c 2e 0a 20 2a 2f |ies as w|ell.. */|
|00002300| 0a 0a 73 74 72 75 63 74 | 20 67 72 61 70 68 20 2a |..struct| graph *|
|00002310| 73 65 6c 67 72 61 70 68 | 28 67 72 61 70 68 73 29 |selgraph|(graphs)|
|00002320| 0a 09 73 74 72 75 63 74 | 20 67 72 61 70 68 20 2a |..struct| graph *|
|00002330| 2a 67 72 61 70 68 73 3b | 0a 7b 0a 09 72 65 67 69 |*graphs;|.{..regi|
|00002340| 73 74 65 72 20 69 6e 74 | 20 63 6e 74 3b 0a 0a 09 |ster int| cnt;...|
|00002350| 66 6f 72 20 28 63 6e 74 | 20 3d 20 30 3b 20 67 72 |for (cnt| = 0; gr|
|00002360| 61 70 68 73 5b 63 6e 74 | 5d 20 21 3d 20 28 73 74 |aphs[cnt|] != (st|
|00002370| 72 75 63 74 20 67 72 61 | 70 68 20 2a 29 20 30 3b |ruct gra|ph *) 0;|
|00002380| 20 63 6e 74 2b 2b 29 0a | 09 09 3b 0a 09 72 65 74 | cnt++).|..;..ret|
|00002390| 75 72 6e 20 67 72 61 70 | 68 73 5b 52 41 4e 44 4f |urn grap|hs[RANDO|
|000023a0| 4d 28 63 6e 74 29 5d 3b | 0a 7d 0a 0a 2f 2a 0a 20 |M(cnt)];|.}../*. |
|000023b0| 2a 20 52 61 6e 64 6f 6d | 6c 79 20 73 65 6c 65 63 |* Random|ly selec|
|000023c0| 74 20 61 20 73 70 65 6c | 6c 69 6e 67 20 66 6f 72 |t a spel|ling for|
|000023d0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 67 | the spe|cified g|
|000023e0| 72 61 70 68 2e 20 20 54 | 68 69 73 20 69 73 20 6e |raph. T|his is n|
|000023f0| 6f 74 20 6c 69 6e 65 61 | 72 3a 0a 20 2a 20 65 61 |ot linea|r:. * ea|
|00002400| 72 6c 69 65 72 20 73 70 | 65 6c 6c 69 6e 67 73 20 |rlier sp|ellings |
|00002410| 61 72 65 20 70 72 65 66 | 65 72 72 65 64 20 6f 76 |are pref|erred ov|
|00002420| 65 72 20 6c 61 74 65 72 | 20 6f 6e 65 73 2c 20 62 |er later| ones, b|
|00002430| 75 74 20 74 68 65 20 6c | 61 74 74 65 72 20 64 6f |ut the l|atter do|
|00002440| 0a 20 2a 20 73 6f 6d 65 | 74 69 6d 65 73 20 73 6e |. * some|times sn|
|00002450| 65 61 6b 20 69 6e 2e 0a | 20 2a 2f 0a 0a 63 68 61 |eak in..| */..cha|
|00002460| 72 20 2a 73 65 6c 73 70 | 65 6c 6c 28 67 72 61 70 |r *selsp|ell(grap|
|00002470| 68 29 0a 09 73 74 72 75 | 63 74 20 67 72 61 70 68 |h)..stru|ct graph|
|00002480| 20 2a 67 72 61 70 68 3b | 0a 7b 0a 09 72 65 67 69 | *graph;|.{..regi|
|00002490| 73 74 65 72 20 69 6e 74 | 20 63 6e 74 2c 20 73 65 |ster int| cnt, se|
|000024a0| 6c 3b 0a 0a 09 66 6f 72 | 20 28 63 6e 74 20 3d 20 |l;...for| (cnt = |
|000024b0| 30 3b 20 67 72 61 70 68 | 2d 3e 73 70 65 6c 6c 69 |0; graph|->spelli|
|000024c0| 6e 67 73 5b 63 6e 74 5d | 20 21 3d 20 28 63 68 61 |ngs[cnt]| != (cha|
|000024d0| 72 20 2a 29 20 30 3b 20 | 63 6e 74 2b 2b 29 0a 09 |r *) 0; |cnt++)..|
|000024e0| 09 3b 0a 09 69 66 20 28 | 63 6e 74 20 3d 3d 20 30 |.;..if (|cnt == 0|
|000024f0| 29 20 7b 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |) {...fp|rintf(st|
|00002500| 64 65 72 72 2c 20 22 50 | 41 4e 49 43 3a 20 73 65 |derr, "P|ANIC: se|
|00002510| 6c 73 70 65 6c 6c 28 25 | 73 29 20 67 6f 74 20 63 |lspell(%|s) got c|
|00002520| 6f 75 6e 74 28 73 70 65 | 6c 6c 69 6e 67 73 29 20 |ount(spe|llings) |
|00002530| 3d 3d 20 30 5c 6e 22 2c | 20 67 72 61 70 68 2d 3e |== 0\n",| graph->|
|00002540| 67 72 61 70 68 29 3b 0a | 09 09 65 78 69 74 28 32 |graph);.|..exit(2|
|00002550| 29 3b 0a 09 7d 0a 09 69 | 66 20 28 63 6e 74 20 3d |);..}..i|f (cnt =|
|00002560| 3d 20 31 29 0a 09 09 72 | 65 74 75 72 6e 20 2a 67 |= 1)...r|eturn *g|
|00002570| 72 61 70 68 2d 3e 73 70 | 65 6c 6c 69 6e 67 73 3b |raph->sp|ellings;|
|00002580| 0a 2f 2a 0a 20 2a 20 54 | 68 69 73 20 6d 61 79 20 |./*. * T|his may |
|00002590| 6e 6f 74 20 62 65 20 74 | 68 65 20 62 65 73 74 20 |not be t|he best |
|000025a0| 77 61 79 20 74 6f 20 64 | 6f 20 69 74 2e 2e 2e 20 |way to d|o it... |
|000025b0| 6d 61 79 62 65 20 57 65 | 65 6d 62 61 27 64 20 63 |maybe We|emba'd c|
|000025c0| 61 72 65 20 74 6f 20 6c | 65 6e 64 20 61 0a 20 2a |are to l|end a. *|
|000025d0| 20 68 61 6e 64 20 68 65 | 72 65 3f 20 20 41 66 74 | hand he|re? Aft|
|000025e0| 65 72 20 61 6c 6c 2c 20 | 6d 79 20 73 70 65 63 69 |er all, |my speci|
|000025f0| 61 6c 74 79 20 69 73 20 | 70 72 6f 67 72 61 6d 6d |alty is |programm|
|00002600| 69 6e 67 2c 20 4e 4f 54 | 20 6d 61 74 68 2e 0a 20 |ing, NOT| math.. |
|00002610| 2a 2f 0a 09 69 66 20 28 | 28 73 65 6c 20 3d 20 63 |*/..if (|(sel = c|
|00002620| 6e 74 20 2d 20 28 69 6e | 74 29 20 73 71 72 74 28 |nt - (in|t) sqrt(|
|00002630| 28 64 6f 75 62 6c 65 29 | 20 52 41 4e 44 4f 4d 28 |(double)| RANDOM(|
|00002640| 63 6e 74 20 2a 20 63 6e | 74 29 20 2b 20 31 29 20 |cnt * cn|t) + 1) |
|00002650| 2d 20 31 29 20 3c 20 30 | 20 7c 7c 20 73 65 6c 20 |- 1) < 0| || sel |
|00002660| 3e 3d 20 63 6e 74 29 20 | 7b 0a 23 69 66 64 65 66 |>= cnt) |{.#ifdef|
|00002670| 20 42 55 47 43 41 54 43 | 48 0a 09 09 66 70 72 69 | BUGCATC|H...fpri|
|00002680| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 50 41 4e |ntf(stde|rr, "PAN|
|00002690| 49 43 3a 20 73 65 6c 73 | 70 65 6c 6c 28 25 73 29 |IC: sels|pell(%s)|
|000026a0| 20 67 6f 74 20 6e 6c 72 | 61 6e 64 28 25 64 29 20 | got nlr|and(%d) |
|000026b0| 3d 3d 20 25 64 5c 6e 22 | 2c 20 67 72 61 70 68 2d |== %d\n"|, graph-|
|000026c0| 3e 67 72 61 70 68 2c 20 | 63 6e 74 2c 20 73 65 6c |>graph, |cnt, sel|
|000026d0| 29 3b 0a 09 09 65 78 69 | 74 28 32 29 3b 0a 23 65 |);...exi|t(2);.#e|
|000026e0| 6c 73 65 0a 09 09 73 65 | 6c 20 3d 20 30 3b 0a 23 |lse...se|l = 0;.#|
|000026f0| 65 6e 64 69 66 0a 09 7d | 0a 09 72 65 74 75 72 6e |endif..}|..return|
|00002700| 20 67 72 61 70 68 2d 3e | 73 70 65 6c 6c 69 6e 67 | graph->|spelling|
|00002710| 73 5b 73 65 6c 5d 3b 0a | 7d 0a 0a 2f 2a 0a 20 2a |s[sel];.|}../*. *|
|00002720| 20 43 68 6f 6f 73 65 20 | 74 68 65 20 6e 65 78 74 | Choose |the next|
|00002730| 20 73 6f 75 72 63 65 20 | 66 6f 72 20 61 20 67 72 | source |for a gr|
|00002740| 61 70 68 2e 20 20 54 68 | 65 20 72 75 6c 65 73 20 |aph. Th|e rules |
|00002750| 61 72 65 3a 20 20 61 20 | 63 6f 6e 73 6f 6e 61 6e |are: a |consonan|
|00002760| 74 20 4d 55 53 54 20 62 | 65 0a 20 2a 20 66 6f 6c |t MUST b|e. * fol|
|00002770| 6c 6f 77 65 64 20 62 79 | 20 61 20 76 6f 77 65 6c |lowed by| a vowel|
|00002780| 3b 20 61 20 76 6f 77 65 | 6c 20 6d 61 79 20 62 65 |; a vowe|l may be|
|00002790| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 20 76 | followe|d by a v|
|000027a0| 6f 77 65 6c 20 6f 66 20 | 61 20 64 69 66 66 65 72 |owel of |a differ|
|000027b0| 65 6e 74 0a 20 2a 20 74 | 79 70 65 20 6f 72 20 62 |ent. * t|ype or b|
|000027c0| 79 20 61 20 63 6f 6e 73 | 6f 6e 61 6e 74 2c 20 62 |y a cons|onant, b|
|000027d0| 75 74 20 6e 65 76 65 72 | 20 6d 6f 72 65 20 74 68 |ut never| more th|
|000027e0| 61 6e 20 74 77 6f 20 63 | 6f 6e 73 65 63 75 74 69 |an two c|onsecuti|
|000027f0| 76 65 20 76 6f 77 65 6c | 20 67 72 61 70 68 73 2e |ve vowel| graphs.|
|00002800| 0a 20 2a 2f 0a 0a 63 68 | 6f 6f 73 65 6e 65 78 74 |. */..ch|oosenext|
|00002810| 28 63 75 72 2c 20 70 72 | 65 76 29 0a 7b 0a 09 69 |(cur, pr|ev).{..i|
|00002820| 66 20 28 63 75 72 20 3d | 3d 20 43 4f 4e 53 4f 4e |f (cur =|= CONSON|
|00002830| 41 4e 54 29 0a 09 09 72 | 65 74 75 72 6e 20 56 4f |ANT)...r|eturn VO|
|00002840| 57 45 4c 5f 4d 41 53 4b | 3b 0a 09 65 6c 73 65 20 |WEL_MASK|;..else |
|00002850| 69 66 20 28 70 72 65 76 | 20 3d 3d 20 2d 31 20 7c |if (prev| == -1 ||
|00002860| 7c 20 28 70 72 65 76 20 | 26 20 56 4f 57 45 4c 5f || (prev |& VOWEL_|
|00002870| 4d 41 53 4b 29 20 21 3d | 20 30 29 0a 09 09 72 65 |MASK) !=| 0)...re|
|00002880| 74 75 72 6e 20 43 4f 4e | 53 4f 4e 41 4e 54 3b 0a |turn CON|SONANT;.|
|00002890| 09 65 6c 73 65 20 69 66 | 20 28 52 41 4e 44 4f 4d |.else if| (RANDOM|
|000028a0| 28 31 30 29 20 3d 3d 20 | 35 29 0a 09 09 72 65 74 |(10) == |5)...ret|
|000028b0| 75 72 6e 20 56 4f 57 45 | 4c 5f 4d 41 53 4b 3b 0a |urn VOWE|L_MASK;.|
|000028c0| 09 65 6c 73 65 0a 09 09 | 72 65 74 75 72 6e 20 43 |.else...|return C|
|000028d0| 4f 4e 53 4f 4e 41 4e 54 | 3b 0a 7d 0a 0a 2f 2a 0a |ONSONANT|;.}../*.|
|000028e0| 20 2a 20 57 65 20 61 72 | 65 20 70 61 73 73 65 64 | * We ar|e passed|
|000028f0| 20 61 6e 20 61 72 72 61 | 79 20 6f 66 20 28 73 74 | an arra|y of (st|
|00002900| 72 75 63 74 20 67 72 61 | 70 68 20 2a 29 3b 20 63 |ruct gra|ph *); c|
|00002910| 68 6f 6f 73 65 20 61 6e | 20 65 6e 74 72 79 20 72 |hoose an| entry r|
|00002920| 61 6e 64 6f 6d 6c 79 20 | 61 6e 64 0a 20 2a 20 61 |andomly |and. * a|
|00002930| 73 73 65 6d 62 6c 65 20 | 61 20 73 74 72 69 6e 67 |ssemble |a string|
|00002940| 20 66 69 74 74 69 6e 67 | 20 74 68 65 20 73 69 7a | fitting| the siz|
|00002950| 65 20 63 6f 6e 73 74 72 | 61 69 6e 74 2e 20 20 57 |e constr|aint. W|
|00002960| 65 20 75 73 65 20 74 68 | 65 20 6f 72 69 67 69 6e |e use th|e origin|
|00002970| 61 6c 20 28 4f 53 49 29 | 0a 20 2a 20 70 61 72 61 |al (OSI)|. * para|
|00002980| 64 69 67 6d 3a 20 20 61 | 6c 74 65 72 6e 61 74 65 |digm: a|lternate|
|00002990| 20 63 6f 6e 73 6f 6e 61 | 6e 74 73 20 61 6e 64 20 | consona|nts and |
|000029a0| 76 6f 77 65 6c 73 2c 20 | 77 69 74 68 20 74 68 65 |vowels, |with the|
|000029b0| 20 6f 70 74 69 6f 6e 20 | 6f 66 20 74 77 6f 20 76 | option |of two v|
|000029c0| 6f 77 65 6c 73 0a 20 2a | 20 69 6e 20 61 20 72 6f |owels. *| in a ro|
|000029d0| 77 20 6f 63 63 61 73 69 | 6f 6e 61 6c 6c 79 2e 20 |w occasi|onally. |
|000029e0| 20 54 68 65 20 6f 6e 6c | 79 20 64 69 66 66 65 72 | The onl|y differ|
|000029f0| 65 6e 63 65 20 69 73 20 | 74 68 61 74 20 74 68 65 |ence is |that the|
|00002a00| 79 20 6d 75 73 74 20 62 | 65 20 64 69 66 66 65 72 |y must b|e differ|
|00002a10| 65 6e 74 0a 20 2a 20 2a | 74 79 70 65 73 2a 20 6f |ent. * *|types* o|
|00002a20| 66 20 76 6f 77 65 6c 73 | 2c 20 61 20 64 69 73 74 |f vowels|, a dist|
|00002a30| 69 6e 63 74 69 6f 6e 20 | 74 68 61 74 20 74 68 65 |inction |that the|
|00002a40| 20 4f 53 49 20 76 65 72 | 73 69 6f 6e 20 64 69 64 | OSI ver|sion did|
|00002a50| 6e 27 74 20 63 6f 6e 73 | 69 64 65 72 2e 0a 20 2a |n't cons|ider.. *|
|00002a60| 2f 0a 0a 70 77 67 65 6e | 28 69 6e 69 74 69 61 6c |/..pwgen|(initial|
|00002a70| 2c 20 70 77 2c 20 6d 61 | 78 6c 65 6e 29 0a 09 73 |, pw, ma|xlen)..s|
|00002a80| 74 72 75 63 74 20 67 72 | 61 70 68 20 2a 2a 69 6e |truct gr|aph **in|
|00002a90| 69 74 69 61 6c 3b 0a 09 | 63 68 61 72 20 2a 70 77 |itial;..|char *pw|
|00002aa0| 3b 0a 7b 0a 09 69 6e 74 | 20 70 77 6c 65 6e 2c 20 |;.{..int| pwlen, |
|00002ab0| 73 74 61 74 65 2c 20 70 | 72 65 76 2c 20 74 6d 70 |state, p|rev, tmp|
|00002ac0| 3b 0a 09 73 74 72 75 63 | 74 20 67 72 61 70 68 20 |;..struc|t graph |
|00002ad0| 2a 67 72 61 70 68 3b 0a | 09 63 68 61 72 20 2a 73 |*graph;.|.char *s|
|00002ae0| 70 65 6c 6c 69 6e 67 3b | 0a 0a 09 70 77 6c 65 6e |pelling;|...pwlen|
|00002af0| 20 3d 20 30 3b 0a 09 73 | 74 61 74 65 20 3d 20 69 | = 0;..s|tate = i|
|00002b00| 6e 69 74 69 61 6c 5b 30 | 5d 2d 3e 74 79 70 65 3b |nitial[0|]->type;|
|00002b10| 0a 09 70 72 65 76 20 3d | 20 2d 31 3b 0a 09 77 68 |..prev =| -1;..wh|
|00002b20| 69 6c 65 20 28 70 77 6c | 65 6e 20 3c 20 6d 61 78 |ile (pwl|en < max|
|00002b30| 6c 65 6e 20 2d 20 31 29 | 20 7b 0a 09 09 64 6f 20 |len - 1)| {...do |
|00002b40| 7b 0a 09 09 09 67 72 61 | 70 68 20 3d 20 73 65 6c |{....gra|ph = sel|
|00002b50| 67 72 61 70 68 28 69 6e | 69 74 69 61 6c 29 3b 0a |graph(in|itial);.|
|00002b60| 09 09 7d 20 77 68 69 6c | 65 20 28 73 74 61 74 65 |..} whil|e (state|
|00002b70| 20 21 3d 20 43 4f 4e 53 | 4f 4e 41 4e 54 20 26 26 | != CONS|ONANT &&|
|00002b80| 20 67 72 61 70 68 2d 3e | 74 79 70 65 20 3d 3d 20 | graph->|type == |
|00002b90| 70 72 65 76 29 3b 0a 09 | 09 69 66 20 28 28 73 70 |prev);..|.if ((sp|
|00002ba0| 65 6c 6c 69 6e 67 20 3d | 20 73 65 6c 73 70 65 6c |elling =| selspel|
|00002bb0| 6c 28 67 72 61 70 68 29 | 29 20 3d 3d 20 28 63 68 |l(graph)|) == (ch|
|00002bc0| 61 72 20 2a 29 20 30 29 | 20 7b 0a 09 09 09 66 70 |ar *) 0)| {....fp|
|00002bd0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 50 |rintf(st|derr, "P|
|00002be0| 41 4e 49 43 3a 20 67 6f | 74 20 4e 55 4c 4c 20 69 |ANIC: go|t NULL i|
|00002bf0| 6e 20 73 65 6c 73 70 65 | 6c 6c 28 25 73 29 5c 6e |n selspe|ll(%s)\n|
|00002c00| 22 2c 20 67 72 61 70 68 | 2d 3e 67 72 61 70 68 29 |", graph|->graph)|
|00002c10| 3b 0a 09 09 09 65 78 69 | 74 28 32 29 3b 0a 09 09 |;....exi|t(2);...|
|00002c20| 7d 0a 09 09 73 74 72 63 | 70 79 28 70 77 2c 20 73 |}...strc|py(pw, s|
|00002c30| 70 65 6c 6c 69 6e 67 29 | 3b 0a 09 09 77 68 69 6c |pelling)|;...whil|
|00002c40| 65 20 28 2a 70 77 20 21 | 3d 20 27 5c 30 27 29 0a |e (*pw !|= '\0').|
|00002c50| 09 09 09 70 77 6c 65 6e | 2b 2b 2c 20 70 77 2b 2b |...pwlen|++, pw++|
|00002c60| 3b 0a 09 09 74 6d 70 20 | 3d 20 70 72 65 76 3b 0a |;...tmp |= prev;.|
|00002c70| 09 09 70 72 65 76 20 3d | 20 67 72 61 70 68 2d 3e |..prev =| graph->|
|00002c80| 74 79 70 65 3b 0a 09 09 | 69 66 20 28 28 73 74 61 |type;...|if ((sta|
|00002c90| 74 65 20 3d 20 63 68 6f | 6f 73 65 6e 65 78 74 28 |te = cho|osenext(|
|00002ca0| 70 72 65 76 2c 20 74 6d | 70 29 29 20 3d 3d 20 43 |prev, tm|p)) == C|
|00002cb0| 4f 4e 53 4f 4e 41 4e 54 | 29 0a 09 09 09 69 6e 69 |ONSONANT|)....ini|
|00002cc0| 74 69 61 6c 20 3d 20 63 | 6f 6e 73 6f 6e 61 6e 74 |tial = c|onsonant|
|00002cd0| 3b 0a 09 09 65 6c 73 65 | 0a 09 09 09 69 6e 69 74 |;...else|....init|
|00002ce0| 69 61 6c 20 3d 20 76 6f | 77 65 6c 3b 0a 09 7d 0a |ial = vo|wel;..}.|
|00002cf0| 7d 0a 0a 6d 61 69 6e 28 | 61 72 67 63 2c 20 61 72 |}..main(|argc, ar|
|00002d00| 67 76 29 0a 09 63 68 61 | 72 20 2a 2a 61 72 67 76 |gv)..cha|r **argv|
|00002d10| 3b 0a 7b 0a 09 69 6e 74 | 20 63 6e 74 2c 20 6c 65 |;.{..int| cnt, le|
|00002d20| 6e 3b 0a 09 63 68 61 72 | 20 62 75 66 5b 32 30 5d |n;..char| buf[20]|
|00002d30| 3b 0a 0a 09 69 66 20 28 | 61 72 67 63 20 3c 20 32 |;...if (|argc < 2|
|00002d40| 20 7c 7c 20 61 72 67 63 | 20 3e 20 33 29 20 7b 0a | || argc| > 3) {.|
|00002d50| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00002d60| 2c 20 22 75 73 61 67 65 | 3a 20 25 73 20 6c 65 6e |, "usage|: %s len|
|00002d70| 67 74 68 20 5b 63 6f 75 | 6e 74 5d 5c 6e 22 2c 20 |gth [cou|nt]\n", |
|00002d80| 61 72 67 76 5b 30 5d 29 | 3b 0a 09 09 65 78 69 74 |argv[0])|;...exit|
|00002d90| 28 31 29 3b 0a 09 7d 0a | 09 69 66 20 28 28 6c 65 |(1);..}.|.if ((le|
|00002da0| 6e 20 3d 20 61 74 6f 69 | 28 61 72 67 76 5b 31 5d |n = atoi|(argv[1]|
|00002db0| 29 29 20 3c 20 34 20 7c | 7c 20 6c 65 6e 20 3e 20 |)) < 4 ||| len > |
|00002dc0| 31 36 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 |16) {...|fprintf(|
|00002dd0| 73 74 64 65 72 72 2c 20 | 22 25 73 3a 20 69 6e 76 |stderr, |"%s: inv|
|00002de0| 61 6c 69 64 20 6c 65 6e | 67 74 68 20 25 73 5c 6e |alid len|gth %s\n|
|00002df0| 22 2c 20 61 72 67 76 5b | 30 5d 2c 20 61 72 67 76 |", argv[|0], argv|
|00002e00| 5b 31 5d 29 3b 0a 09 09 | 65 78 69 74 28 31 29 3b |[1]);...|exit(1);|
|00002e10| 0a 09 7d 0a 09 69 66 20 | 28 61 72 67 63 20 3d 3d |..}..if |(argc ==|
|00002e20| 20 32 29 0a 09 09 63 6e | 74 20 3d 20 31 3b 0a 09 | 2)...cn|t = 1;..|
|00002e30| 65 6c 73 65 20 69 66 20 | 28 28 63 6e 74 20 3d 20 |else if |((cnt = |
|00002e40| 61 74 6f 69 28 61 72 67 | 76 5b 32 5d 29 29 20 3c |atoi(arg|v[2])) <|
|00002e50| 20 31 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 1) {...|fprintf(|
|00002e60| 73 74 64 65 72 72 2c 20 | 22 25 73 3a 20 69 6e 76 |stderr, |"%s: inv|
|00002e70| 61 6c 69 64 20 63 6f 75 | 6e 74 20 25 73 5c 6e 22 |alid cou|nt %s\n"|
|00002e80| 2c 20 20 61 72 67 76 5b | 30 5d 2c 20 61 72 67 76 |, argv[|0], argv|
|00002e90| 5b 32 5d 29 3b 0a 09 09 | 65 78 69 74 28 31 29 3b |[2]);...|exit(1);|
|00002ea0| 0a 09 7d 0a 09 73 72 61 | 6e 64 28 74 69 6d 65 28 |..}..sra|nd(time(|
|00002eb0| 30 29 20 2b 20 28 67 65 | 74 70 67 72 70 28 29 20 |0) + (ge|tpgrp() |
|00002ec0| 3c 3c 20 38 29 20 2b 20 | 67 65 74 70 69 64 28 29 |<< 8) + |getpid()|
|00002ed0| 29 3b 0a 09 77 68 69 6c | 65 20 28 63 6e 74 2d 2d |);..whil|e (cnt--|
|00002ee0| 20 21 3d 20 30 29 20 7b | 0a 09 09 70 77 67 65 6e | != 0) {|...pwgen|
|00002ef0| 28 28 52 41 4e 44 4f 4d | 28 31 30 29 20 3c 20 34 |((RANDOM|(10) < 4|
|00002f00| 3f 20 76 6f 77 65 6c 3a | 20 63 6f 6e 73 6f 6e 61 |? vowel:| consona|
|00002f10| 6e 74 29 2c 20 62 75 66 | 2c 20 6c 65 6e 29 3b 0a |nt), buf|, len);.|
|00002f20| 09 09 70 72 69 6e 74 66 | 28 22 25 73 5c 6e 22 2c |..printf|("%s\n",|
|00002f30| 20 62 75 66 29 3b 0a 09 | 7d 0a 09 65 78 69 74 28 | buf);..|}..exit(|
|00002f40| 30 29 3b 0a 7d 0a 00 00 | 00 00 00 00 00 00 00 00 |0);.}...|........|
|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| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 73 22 20 28 61 63 74 75 | 61 6c 6c 79 2c 20 74 68 |s" (actu|ally, th|
|00003410| 65 79 20 61 72 65 20 61 | 20 72 65 73 74 72 69 63 |ey are a| restric|
|00003420| 74 65 64 20 73 65 74 20 | 6f 66 20 70 68 6f 6e 65 |ted set |of phone|
|00003430| 6d 65 73 29 0a 20 2a 20 | 61 6e 64 20 68 61 76 69 |mes). * |and havi|
|00003440| 6e 67 20 72 61 6e 64 6f | 6d 6c 79 2d 73 65 6c 65 |ng rando|mly-sele|
|00003450| 63 74 65 64 20 73 70 65 | 6c 6c 69 6e 67 73 20 66 |cted spe|llings f|
|00003460| 6f 72 20 74 68 6f 73 65 | 20 67 72 61 70 68 73 2e |or those| graphs.|
|00003470| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |. */..#i|nclude <|
|00003480| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00003490| 65 20 3c 6d 61 74 68 2e | 68 3e 0a 0a 23 64 65 66 |e <math.|h>..#def|
|000034a0| 69 6e 65 20 52 41 4e 44 | 4f 4d 28 63 29 09 28 28 |ine RAND|OM(c).((|
|000034b0| 69 6e 74 29 20 28 72 61 | 6e 64 28 63 29 20 2f 20 |int) (ra|nd(c) / |
|000034c0| 33 32 37 36 37 2e 30 20 | 2a 20 28 63 29 29 29 0a |32767.0 |* (c))).|
|000034d0| 0a 63 68 61 72 20 2a 73 | 70 65 6c 6c 69 6e 67 5b |.char *s|pelling[|
|000034e0| 5d 20 3d 20 7b 0a 2f 2a | 61 2a 2f 09 22 61 22 2c |] = {./*|a*/."a",|
|000034f0| 09 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |....(cha|r *) 0,.|
|00003500| 2f 2a 20 32 2a 2f 0a 2f | 2a 41 2a 2f 09 22 61 22 |/* 2*/./|*A*/."a"|
|00003510| 2c 09 22 61 65 22 2c 09 | 22 61 69 22 2c 09 09 28 |,."ae",.|"ai",..(|
|00003520| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 20 36 2a |char *) |0,./* 6*|
|00003530| 2f 0a 2f 2a 62 2a 2f 09 | 22 62 22 2c 09 09 09 09 |/./*b*/.|"b",....|
|00003540| 28 63 68 61 72 20 2a 29 | 20 30 2c 09 2f 2a 20 38 |(char *)| 0,./* 8|
|00003550| 2a 2f 0a 2f 2a 63 68 2a | 2f 09 22 63 68 22 2c 09 |*/./*ch*|/."ch",.|
|00003560| 09 09 09 28 63 68 61 72 | 20 2a 29 20 30 2c 09 2f |...(char| *) 0,./|
|00003570| 2a 31 30 2a 2f 0a 2f 2a | 64 2a 2f 09 22 64 22 2c |*10*/./*|d*/."d",|
|00003580| 09 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |....(cha|r *) 0,.|
|00003590| 2f 2a 31 32 2a 2f 0a 2f | 2a 65 2a 2f 09 22 65 22 |/*12*/./|*e*/."e"|
|000035a0| 2c 09 09 09 09 28 63 68 | 61 72 20 2a 29 20 30 2c |,....(ch|ar *) 0,|
|000035b0| 09 2f 2a 31 34 2a 2f 0a | 2f 2a 45 2a 2f 09 22 65 |./*14*/.|/*E*/."e|
|000035c0| 22 2c 09 22 65 65 22 2c | 09 22 69 65 22 2c 09 09 |",."ee",|."ie",..|
|000035d0| 28 63 68 61 72 20 2a 29 | 20 30 2c 09 2f 2a 31 38 |(char *)| 0,./*18|
|000035e0| 2a 2f 0a 2f 2a 66 2a 2f | 09 22 66 22 2c 09 22 70 |*/./*f*/|."f",."p|
|000035f0| 68 22 2c 09 22 67 68 22 | 2c 09 09 28 63 68 61 72 |h",."gh"|,..(char|
|00003600| 20 2a 29 20 30 2c 09 2f | 2a 32 32 2a 2f 0a 2f 2a | *) 0,./|*22*/./*|
|00003610| 67 2a 2f 09 22 67 22 2c | 09 09 09 09 28 63 68 61 |g*/."g",|....(cha|
|00003620| 72 20 2a 29 20 30 2c 09 | 2f 2a 32 34 2a 2f 0a 2f |r *) 0,.|/*24*/./|
|00003630| 2a 68 2a 2f 09 22 68 22 | 2c 09 09 09 09 28 63 68 |*h*/."h"|,....(ch|
|00003640| 61 72 20 2a 29 20 30 2c | 09 2f 2a 32 36 2a 2f 0a |ar *) 0,|./*26*/.|
|00003650| 2f 2a 69 2a 2f 09 22 69 | 22 2c 09 22 65 22 2c 09 |/*i*/."i|",."e",.|
|00003660| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00003670| 32 39 2a 2f 0a 2f 2a 49 | 2a 2f 09 22 69 22 2c 09 |29*/./*I|*/."i",.|
|00003680| 22 61 69 22 2c 09 09 09 | 28 63 68 61 72 20 2a 29 |"ai",...|(char *)|
|00003690| 20 30 2c 09 2f 2a 33 32 | 2a 2f 0a 2f 2a 69 27 2a | 0,./*32|*/./*i'*|
|000036a0| 2f 09 22 69 22 2c 09 22 | 65 69 22 2c 09 09 09 28 |/."i",."|ei",...(|
|000036b0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 33 35 2a |char *) |0,./*35*|
|000036c0| 2f 0a 2f 2a 6a 2a 2f 09 | 22 6a 22 2c 09 22 67 22 |/./*j*/.|"j",."g"|
|000036d0| 2c 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |,...(cha|r *) 0,.|
|000036e0| 2f 2a 33 38 2a 2f 0a 2f | 2a 6b 2a 2f 09 22 6b 22 |/*38*/./|*k*/."k"|
|000036f0| 2c 09 22 63 22 2c 09 09 | 09 28 63 68 61 72 20 2a |,."c",..|.(char *|
|00003700| 29 20 30 2c 09 2f 2a 34 | 31 2a 2f 0a 2f 2a 6c 2a |) 0,./*4|1*/./*l*|
|00003710| 2f 09 22 6c 22 2c 09 09 | 09 09 28 63 68 61 72 20 |/."l",..|..(char |
|00003720| 2a 29 20 30 2c 09 2f 2a | 34 33 2a 2f 0a 2f 2a 6d |*) 0,./*|43*/./*m|
|00003730| 2a 2f 09 22 6d 22 2c 09 | 09 09 09 28 63 68 61 72 |*/."m",.|...(char|
|00003740| 20 2a 29 20 30 2c 09 2f | 2a 34 35 2a 2f 0a 2f 2a | *) 0,./|*45*/./*|
|00003750| 6e 2a 2f 09 22 6e 22 2c | 09 09 09 09 28 63 68 61 |n*/."n",|....(cha|
|00003760| 72 20 2a 29 20 30 2c 09 | 2f 2a 34 37 2a 2f 0a 2f |r *) 0,.|/*47*/./|
|00003770| 2a 6e 67 2a 2f 09 22 6e | 67 22 2c 09 09 09 09 28 |*ng*/."n|g",....(|
|00003780| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 34 39 2a |char *) |0,./*49*|
|00003790| 2f 0a 2f 2a 6f 2a 2f 09 | 22 6f 22 2c 09 22 61 22 |/./*o*/.|"o",."a"|
|000037a0| 2c 09 22 61 68 22 2c 09 | 09 28 63 68 61 72 20 2a |,."ah",.|.(char *|
|000037b0| 29 20 30 2c 09 2f 2a 35 | 33 2a 2f 0a 2f 2a 4f 2a |) 0,./*5|3*/./*O*|
|000037c0| 2f 09 22 6f 22 2c 09 22 | 6f 68 22 2c 09 09 09 28 |/."o",."|oh",...(|
|000037d0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 35 36 2a |char *) |0,./*56*|
|000037e0| 2f 0a 2f 2a 6f 6f 2a 2f | 09 22 6f 6f 22 2c 09 22 |/./*oo*/|."oo",."|
|000037f0| 75 22 2c 09 09 09 28 63 | 68 61 72 20 2a 29 20 30 |u",...(c|har *) 0|
|00003800| 2c 09 2f 2a 35 39 2a 2f | 0a 2f 2a 4f 4f 2a 2f 09 |,./*59*/|./*OO*/.|
|00003810| 22 6f 6f 22 2c 09 22 77 | 22 2c 09 09 09 28 63 68 |"oo",."w|",...(ch|
|00003820| 61 72 20 2a 29 20 30 2c | 09 2f 2a 36 32 2a 2f 0a |ar *) 0,|./*62*/.|
|00003830| 2f 2a 70 2a 2f 09 22 70 | 22 2c 09 09 09 09 28 63 |/*p*/."p|",....(c|
|00003840| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 36 34 2a 2f |har *) 0|,./*64*/|
|00003850| 0a 2f 2a 71 75 2a 2f 09 | 22 71 75 22 2c 09 09 09 |./*qu*/.|"qu",...|
|00003860| 09 28 63 68 61 72 20 2a | 29 20 30 2c 09 2f 2a 36 |.(char *|) 0,./*6|
|00003870| 36 2a 2f 0a 2f 2a 72 2a | 2f 09 22 72 22 2c 09 09 |6*/./*r*|/."r",..|
|00003880| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00003890| 36 38 2a 2f 0a 2f 2a 73 | 2a 2f 09 22 73 22 2c 09 |68*/./*s|*/."s",.|
|000038a0| 22 63 22 2c 09 09 09 28 | 63 68 61 72 20 2a 29 20 |"c",...(|char *) |
|000038b0| 30 2c 09 2f 2a 37 31 2a | 2f 0a 2f 2a 73 68 2a 2f |0,./*71*|/./*sh*/|
|000038c0| 09 22 73 68 22 2c 09 22 | 73 22 2c 09 09 09 28 63 |."sh",."|s",...(c|
|000038d0| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 37 34 2a 2f |har *) 0|,./*74*/|
|000038e0| 0a 2f 2a 74 2a 2f 09 22 | 74 22 2c 09 09 09 09 28 |./*t*/."|t",....(|
|000038f0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 37 36 2a |char *) |0,./*76*|
|00003900| 2f 0a 2f 2a 74 68 2a 2f | 09 22 74 68 22 2c 09 09 |/./*th*/|."th",..|
|00003910| 09 09 28 63 68 61 72 20 | 2a 29 20 30 2c 09 2f 2a |..(char |*) 0,./*|
|00003920| 37 38 2a 2f 0a 2f 2a 54 | 48 2a 2f 09 22 74 68 22 |78*/./*T|H*/."th"|
|00003930| 2c 09 09 09 09 28 63 68 | 61 72 20 2a 29 20 30 2c |,....(ch|ar *) 0,|
|00003940| 09 2f 2a 38 30 2a 2f 0a | 2f 2a 75 2a 2f 09 22 75 |./*80*/.|/*u*/."u|
|00003950| 22 2c 09 09 09 09 28 63 | 68 61 72 20 2a 29 20 30 |",....(c|har *) 0|
|00003960| 2c 09 2f 2a 38 32 2a 2f | 0a 2f 2a 55 2a 2f 09 22 |,./*82*/|./*U*/."|
|00003970| 75 22 2c 09 22 6f 6f 22 | 2c 09 09 09 28 63 68 61 |u",."oo"|,...(cha|
|00003980| 72 20 2a 29 20 30 2c 09 | 2f 2a 38 35 2a 2f 0a 2f |r *) 0,.|/*85*/./|
|00003990| 2a 76 2a 2f 09 22 76 22 | 2c 09 09 09 09 28 63 68 |*v*/."v"|,....(ch|
|000039a0| 61 72 20 2a 29 20 30 2c | 09 2f 2a 38 37 2a 2f 0a |ar *) 0,|./*87*/.|
|000039b0| 2f 2a 78 2a 2f 09 22 78 | 22 2c 09 09 09 09 28 63 |/*x*/."x|",....(c|
|000039c0| 68 61 72 20 2a 29 20 30 | 2c 09 2f 2a 38 39 2a 2f |har *) 0|,./*89*/|
|000039d0| 0a 2f 2a 79 2a 2f 09 22 | 79 22 2c 09 09 09 09 28 |./*y*/."|y",....(|
|000039e0| 63 68 61 72 20 2a 29 20 | 30 2c 09 2f 2a 39 31 2a |char *) |0,./*91*|
|000039f0| 2f 0a 2f 2a 7a 2a 2f 09 | 22 7a 22 2c 09 22 73 22 |/./*z*/.|"z",."s"|
|00003a00| 2c 09 09 09 28 63 68 61 | 72 20 2a 29 20 30 2c 09 |,...(cha|r *) 0,.|
|00003a10| 2f 2a 39 34 2a 2f 0a 7d | 3b 0a 0a 73 74 72 75 63 |/*94*/.}|;..struc|
|00003a20| 74 20 67 72 61 70 68 20 | 7b 0a 09 63 68 61 72 20 |t graph |{..char |
|00003a30| 2a 67 72 61 70 68 3b 0a | 09 63 68 61 72 20 74 79 |*graph;.|.char ty|
|00003a40| 70 65 3b 0a 23 64 65 66 | 69 6e 65 20 43 4f 4e 53 |pe;.#def|ine CONS|
|00003a50| 4f 4e 41 4e 54 09 30 0a | 23 64 65 66 69 6e 65 20 |ONANT.0.|#define |
|00003a60| 56 4f 57 45 4c 5f 4c 4f | 4e 47 09 31 0a 23 64 65 |VOWEL_LO|NG.1.#de|
|00003a70| 66 69 6e 65 20 56 4f 57 | 45 4c 5f 53 48 4f 52 54 |fine VOW|EL_SHORT|
|00003a80| 09 32 0a 23 64 65 66 69 | 6e 65 20 56 4f 57 45 4c |.2.#defi|ne VOWEL|
|00003a90| 5f 4f 54 48 45 52 09 33 | 0a 23 64 65 66 69 6e 65 |_OTHER.3|.#define|
|00003aa0| 20 56 4f 57 45 4c 5f 4d | 41 53 4b 09 33 0a 23 64 | VOWEL_M|ASK.3.#d|
|00003ab0| 65 66 69 6e 65 20 69 73 | 63 6f 6e 73 28 63 29 09 |efine is|cons(c).|
|00003ac0| 28 28 28 63 29 2d 3e 74 | 79 70 65 20 26 20 56 4f |(((c)->t|ype & VO|
|00003ad0| 57 45 4c 5f 4d 41 53 4b | 29 20 3d 3d 20 30 29 0a |WEL_MASK|) == 0).|
|00003ae0| 23 64 65 66 69 6e 65 20 | 69 73 76 6f 77 65 6c 28 |#define |isvowel(|
|00003af0| 63 29 09 28 28 28 63 29 | 2d 3e 74 79 70 65 20 26 |c).(((c)|->type &|
|00003b00| 20 56 4f 57 45 4c 5f 4d | 41 53 4b 29 20 21 3d 20 | VOWEL_M|ASK) != |
|00003b10| 30 29 0a 2f 2a 09 63 68 | 61 72 20 66 72 65 71 75 |0)./*.ch|ar frequ|
|00003b20| 65 6e 63 79 3b 09 09 09 | 2a 2f 09 2f 2a 20 75 6e |ency;...|*/./* un|
|00003b30| 75 73 65 64 20 66 6f 72 | 20 6e 6f 77 20 2a 2f 0a |used for| now */.|
|00003b40| 09 63 68 61 72 20 2a 2a | 73 70 65 6c 6c 69 6e 67 |.char **|spelling|
|00003b50| 73 3b 0a 2f 2a 09 73 74 | 72 75 63 74 20 67 72 61 |s;./*.st|ruct gra|
|00003b60| 70 68 20 2a 2a 66 6f 6c | 6c 6f 77 69 6e 67 3b 09 |ph **fol|lowing;.|
|00003b70| 2a 2f 09 2f 2a 20 6d 61 | 79 62 65 20 6c 61 74 65 |*/./* ma|ybe late|
|00003b80| 72 20 2a 2f 0a 7d 20 67 | 72 61 70 68 5b 5d 20 3d |r */.} g|raph[] =|
|00003b90| 20 7b 0a 09 22 61 22 2c | 09 56 4f 57 45 4c 5f 53 | {.."a",|.VOWEL_S|
|00003ba0| 48 4f 52 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |HORT,.&s|pelling[|
|00003bb0| 30 5d 2c 0a 09 22 41 22 | 2c 09 56 4f 57 45 4c 5f |0],.."A"|,.VOWEL_|
|00003bc0| 4c 4f 4e 47 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |LONG,.&s|pelling[|
|00003bd0| 32 5d 2c 0a 09 22 62 22 | 2c 09 43 4f 4e 53 4f 4e |2],.."b"|,.CONSON|
|00003be0| 41 4e 54 2c 09 26 73 70 | 65 6c 6c 69 6e 67 5b 36 |ANT,.&sp|elling[6|
|00003bf0| 5d 2c 0a 09 22 63 68 22 | 2c 09 43 4f 4e 53 4f 4e |],.."ch"|,.CONSON|
|00003c00| 41 4e 54 2c 09 26 73 70 | 65 6c 6c 69 6e 67 5b 38 |ANT,.&sp|elling[8|
|00003c10| 5d 2c 0a 09 22 64 22 2c | 09 43 4f 4e 53 4f 4e 41 |],.."d",|.CONSONA|
|00003c20| 4e 54 2c 09 26 73 70 65 | 6c 6c 69 6e 67 5b 31 30 |NT,.&spe|lling[10|
|00003c30| 5d 2c 0a 09 22 65 22 2c | 09 56 4f 57 45 4c 5f 53 |],.."e",|.VOWEL_S|
|00003c40| 48 4f 52 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |HORT,.&s|pelling[|
|00003c50| 31 32 5d 2c 0a 09 22 45 | 22 2c 09 56 4f 57 45 4c |12],.."E|",.VOWEL|
|00003c60| 5f 4c 4f 4e 47 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |_LONG,.&|spelling|
|00003c70| 5b 31 34 5d 2c 0a 09 22 | 66 22 2c 09 43 4f 4e 53 |[14],.."|f",.CONS|
|00003c80| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003c90| 5b 31 38 5d 2c 0a 09 22 | 67 22 2c 09 43 4f 4e 53 |[18],.."|g",.CONS|
|00003ca0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003cb0| 5b 32 32 5d 2c 0a 09 22 | 68 22 2c 09 43 4f 4e 53 |[22],.."|h",.CONS|
|00003cc0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003cd0| 5b 32 34 5d 2c 0a 09 22 | 69 22 2c 09 56 4f 57 45 |[24],.."|i",.VOWE|
|00003ce0| 4c 5f 53 48 4f 52 54 2c | 09 26 73 70 65 6c 6c 69 |L_SHORT,|.&spelli|
|00003cf0| 6e 67 5b 32 36 5d 2c 0a | 09 22 49 22 2c 09 56 4f |ng[26],.|."I",.VO|
|00003d00| 57 45 4c 5f 4c 4f 4e 47 | 2c 09 26 73 70 65 6c 6c |WEL_LONG|,.&spell|
|00003d10| 69 6e 67 5b 32 39 5d 2c | 0a 09 22 69 27 22 2c 09 |ing[29],|.."i'",.|
|00003d20| 56 4f 57 45 4c 5f 4f 54 | 48 45 52 2c 09 26 73 70 |VOWEL_OT|HER,.&sp|
|00003d30| 65 6c 6c 69 6e 67 5b 33 | 32 5d 2c 0a 09 22 6a 22 |elling[3|2],.."j"|
|00003d40| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003d50| 65 6c 6c 69 6e 67 5b 33 | 35 5d 2c 0a 09 22 6b 22 |elling[3|5],.."k"|
|00003d60| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003d70| 65 6c 6c 69 6e 67 5b 33 | 38 5d 2c 0a 09 22 6c 22 |elling[3|8],.."l"|
|00003d80| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003d90| 65 6c 6c 69 6e 67 5b 34 | 31 5d 2c 0a 09 22 6d 22 |elling[4|1],.."m"|
|00003da0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003db0| 65 6c 6c 69 6e 67 5b 34 | 33 5d 2c 0a 09 22 6e 22 |elling[4|3],.."n"|
|00003dc0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003dd0| 65 6c 6c 69 6e 67 5b 34 | 35 5d 2c 0a 09 22 6e 67 |elling[4|5],.."ng|
|00003de0| 22 2c 09 43 4f 4e 53 4f | 4e 41 4e 54 2c 09 26 73 |",.CONSO|NANT,.&s|
|00003df0| 70 65 6c 6c 69 6e 67 5b | 34 37 5d 2c 0a 09 22 6f |pelling[|47],.."o|
|00003e00| 22 2c 09 56 4f 57 45 4c | 5f 53 48 4f 52 54 2c 09 |",.VOWEL|_SHORT,.|
|00003e10| 26 73 70 65 6c 6c 69 6e | 67 5b 34 39 5d 2c 0a 09 |&spellin|g[49],..|
|00003e20| 22 4f 22 2c 09 56 4f 57 | 45 4c 5f 4c 4f 4e 47 2c |"O",.VOW|EL_LONG,|
|00003e30| 09 26 73 70 65 6c 6c 69 | 6e 67 5b 35 33 5d 2c 0a |.&spelli|ng[53],.|
|00003e40| 09 22 6f 6f 22 2c 09 56 | 4f 57 45 4c 5f 53 48 4f |."oo",.V|OWEL_SHO|
|00003e50| 52 54 2c 09 26 73 70 65 | 6c 6c 69 6e 67 5b 35 36 |RT,.&spe|lling[56|
|00003e60| 5d 2c 0a 09 22 4f 4f 22 | 2c 09 56 4f 57 45 4c 5f |],.."OO"|,.VOWEL_|
|00003e70| 4c 4f 4e 47 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |LONG,.&s|pelling[|
|00003e80| 35 39 5d 2c 0a 09 22 70 | 22 2c 09 43 4f 4e 53 4f |59],.."p|",.CONSO|
|00003e90| 4e 41 4e 54 2c 09 26 73 | 70 65 6c 6c 69 6e 67 5b |NANT,.&s|pelling[|
|00003ea0| 36 32 5d 2c 0a 09 22 71 | 75 22 2c 09 43 4f 4e 53 |62],.."q|u",.CONS|
|00003eb0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003ec0| 5b 36 34 5d 2c 0a 09 22 | 72 22 2c 09 43 4f 4e 53 |[64],.."|r",.CONS|
|00003ed0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003ee0| 5b 36 36 5d 2c 0a 09 22 | 73 22 2c 09 43 4f 4e 53 |[66],.."|s",.CONS|
|00003ef0| 4f 4e 41 4e 54 2c 09 26 | 73 70 65 6c 6c 69 6e 67 |ONANT,.&|spelling|
|00003f00| 5b 36 38 5d 2c 0a 09 22 | 73 68 22 2c 09 43 4f 4e |[68],.."|sh",.CON|
|00003f10| 53 4f 4e 41 4e 54 2c 09 | 26 73 70 65 6c 6c 69 6e |SONANT,.|&spellin|
|00003f20| 67 5b 37 31 5d 2c 0a 09 | 22 74 22 2c 09 43 4f 4e |g[71],..|"t",.CON|
|00003f30| 53 4f 4e 41 4e 54 2c 09 | 26 73 70 65 6c 6c 69 6e |SONANT,.|&spellin|
|00003f40| 67 5b 37 34 5d 2c 0a 09 | 22 74 68 22 2c 09 43 4f |g[74],..|"th",.CO|
|00003f50| 4e 53 4f 4e 41 4e 54 2c | 09 26 73 70 65 6c 6c 69 |NSONANT,|.&spelli|
|00003f60| 6e 67 5b 37 36 5d 2c 0a | 09 22 54 48 22 2c 09 43 |ng[76],.|."TH",.C|
|00003f70| 4f 4e 53 4f 4e 41 4e 54 | 2c 09 26 73 70 65 6c 6c |ONSONANT|,.&spell|
|00003f80| 69 6e 67 5b 37 38 5d 2c | 0a 09 22 75 22 2c 09 56 |ing[78],|.."u",.V|
|00003f90| 4f 57 45 4c 5f 53 48 4f | 52 54 2c 09 26 73 70 65 |OWEL_SHO|RT,.&spe|
|00003fa0| 6c 6c 69 6e 67 5b 38 30 | 5d 2c 0a 09 22 55 22 2c |lling[80|],.."U",|
|00003fb0| 09 56 4f 57 45 4c 5f 4c | 4f 4e 47 2c 09 26 73 70 |.VOWEL_L|ONG,.&sp|
|00003fc0| 65 6c 6c 69 6e 67 5b 38 | 32 5d 2c 0a 09 22 76 22 |elling[8|2],.."v"|
|00003fd0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
|00003fe0| 65 6c 6c 69 6e 67 5b 38 | 35 5d 2c 0a 09 22 78 22 |elling[8|5],.."x"|
|00003ff0| 2c 09 43 4f 4e 53 4f 4e | 41 4e 54 2c 09 26 73 70 |,.CONSON|ANT,.&sp|
+--------+-------------------------+-------------------------+--------+--------+