home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / OpenDataFiles.c < prev    next >
MacBinary  |  1994-05-28  |  3.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: OpenDataFiles.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat May 28 00:07:31 1994, modified Sat May 28 00:07:31 1994, creator 'CWIE', type ASCII, 3005 bytes "OpenDataFiles.c" , at 0xc3d 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 4f 70 65 6e 44 61 | 74 61 46 69 6c 65 73 2e |..OpenDa|taFiles.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|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 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b bd 00 | 00 01 ac aa 0c 74 03 aa |........|.....t..|
|00000060| 0c 74 03 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.t......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 00 9f 00 00 |........|........|
|00000080| 2f 2a 0d 4f 70 65 6e 44 | 61 74 61 46 69 6c 65 2e |/*.OpenD|ataFile.|
|00000090| 63 0d 54 68 69 73 20 69 | 73 20 73 6f 6d 65 74 68 |c.This i|s someth|
|000000a0| 69 6e 67 20 49 20 66 6f | 75 6e 64 20 6d 79 73 65 |ing I fo|und myse|
|000000b0| 6c 66 20 77 72 69 74 69 | 6e 67 20 72 65 70 65 61 |lf writi|ng repea|
|000000c0| 74 65 64 6c 79 2e 20 49 | 74 20 61 73 6b 73 20 74 |tedly. I|t asks t|
|000000d0| 68 65 20 75 73 65 72 20 | 66 6f 72 20 61 0d 70 61 |he user |for a.pa|
|000000e0| 72 61 6d 65 74 65 72 20 | 66 69 6c 65 20 77 69 74 |rameter |file wit|
|000000f0| 68 20 65 78 74 65 6e 73 | 69 6f 6e 20 22 2e 69 6e |h extens|ion ".in|
|00000100| 22 20 74 6f 20 62 65 20 | 75 73 65 64 20 66 6f 72 |" to be |used for|
|00000110| 20 69 6e 70 75 74 20 28 | 74 6f 20 63 6f 6e 74 72 | input (|to contr|
|00000120| 6f 6c 20 61 6e 20 65 78 | 70 65 72 69 6d 65 6e 74 |ol an ex|periment|
|00000130| 29 2c 0d 61 6e 64 20 6f | 70 65 6e 73 20 69 74 20 |),.and o|pens it |
|00000140| 61 73 20 74 68 65 20 69 | 6e 70 75 74 20 73 74 72 |as the i|nput str|
|00000150| 65 61 6d 20 2a 69 6e 50 | 74 72 20 28 77 69 74 68 |eam *inP|tr (with|
|00000160| 20 64 65 66 61 75 6c 74 | 20 73 74 64 69 6e 29 2e | default| stdin).|
|00000170| 20 54 68 65 6e 20 69 74 | 20 6f 70 65 6e 73 20 61 | Then it| opens a|
|00000180| 20 6e 65 77 20 6f 75 74 | 70 75 74 0d 66 69 6c 65 | new out|put.file|
|00000190| 20 77 69 74 68 20 61 20 | 75 6e 69 71 75 65 20 6e | with a |unique n|
|000001a0| 61 6d 65 20 66 6f 72 6d | 65 64 20 62 79 20 61 70 |ame form|ed by ap|
|000001b0| 70 65 6e 64 69 6e 67 20 | 61 20 74 69 6d 65 20 73 |pending |a time s|
|000001c0| 74 61 6d 70 20 6f 6e 74 | 6f 20 74 68 65 20 69 6e |tamp ont|o the in|
|000001d0| 70 75 74 20 66 69 6c 65 | 20 6e 61 6d 65 2e 0d 49 |put file| name..I|
|000001e0| 66 20 74 68 65 72 65 27 | 73 20 6e 6f 20 69 6e 70 |f there'|s no inp|
|000001f0| 75 74 20 66 69 6c 65 20 | 74 68 65 6e 20 74 68 65 |ut file |then the|
|00000200| 20 75 73 65 72 20 69 73 | 20 61 73 6b 65 64 20 74 | user is| asked t|
|00000210| 6f 20 73 75 70 70 6c 79 | 20 61 20 62 61 73 65 20 |o supply| a base |
|00000220| 66 69 6c 65 20 6e 61 6d | 65 20 66 6f 72 20 74 68 |file nam|e for th|
|00000230| 65 0d 6f 75 74 70 75 74 | 20 66 69 6c 65 2c 20 74 |e.output| file, t|
|00000240| 6f 20 77 68 69 63 68 20 | 74 68 65 20 65 78 74 65 |o which |the exte|
|00000250| 6e 73 69 6f 6e 20 69 73 | 20 61 64 64 65 64 2e 20 |nsion is| added. |
|00000260| 49 66 20 74 68 65 20 74 | 6f 74 61 6c 20 66 69 6c |If the t|otal fil|
|00000270| 65 20 6e 61 6d 65 20 77 | 6f 75 6c 64 20 62 65 20 |e name w|ould be |
|00000280| 6d 6f 72 65 20 74 68 61 | 6e 0d 33 31 20 63 68 61 |more tha|n.31 cha|
|00000290| 72 61 63 74 65 72 73 2c | 20 74 68 65 20 6d 61 78 |racters,| the max|
|000002a0| 69 6d 75 6d 20 61 6c 6c | 6f 77 65 64 20 6f 6e 20 |imum all|owed on |
|000002b0| 74 68 65 20 4d 61 63 2c | 20 74 68 65 6e 20 74 68 |the Mac,| then th|
|000002c0| 65 20 62 61 73 65 20 6e | 61 6d 65 20 69 73 20 74 |e base n|ame is t|
|000002d0| 72 75 6e 63 61 74 65 64 | 2e 20 54 68 69 73 0d 67 |runcated|. This.g|
|000002e0| 75 61 72 61 6e 74 65 65 | 73 20 74 68 61 74 20 74 |uarantee|s that t|
|000002f0| 68 65 20 65 78 74 65 6e | 73 69 6f 6e 20 77 69 6c |he exten|sion wil|
|00000300| 6c 20 73 74 69 6c 6c 20 | 62 65 20 75 6e 69 71 75 |l still |be uniqu|
|00000310| 65 2e 20 0d 0d 46 69 6e | 61 6c 6c 79 20 74 68 65 |e. ..Fin|ally the|
|00000320| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 20 74 79 70 | output |file typ|
|00000330| 65 20 69 73 20 73 65 74 | 20 74 6f 20 45 78 63 65 |e is set| to Exce|
|00000340| 6c 2e 0d 0d 53 69 6e 63 | 65 20 74 68 65 20 74 69 |l...Sinc|e the ti|
|00000350| 6d 65 20 73 74 61 6d 70 | 20 61 64 76 61 6e 63 65 |me stamp| advance|
|00000360| 73 20 6f 6e 6c 79 20 6f | 6e 63 65 20 70 65 72 20 |s only o|nce per |
|00000370| 73 65 63 6f 6e 64 2c 20 | 49 20 61 64 64 65 64 20 |second, |I added |
|00000380| 61 20 63 68 65 63 6b 20 | 74 6f 20 6d 61 6b 65 20 |a check |to make |
|00000390| 73 75 72 65 0d 74 68 61 | 74 20 74 68 65 20 70 72 |sure.tha|t the pr|
|000003a0| 6f 70 6f 73 65 64 20 6e | 65 77 20 6f 75 74 70 75 |oposed n|ew outpu|
|000003b0| 74 20 66 69 6c 65 20 64 | 6f 65 73 6e 27 74 20 61 |t file d|oesn't a|
|000003c0| 6c 72 65 61 64 79 20 65 | 78 69 73 74 2e 20 54 68 |lready e|xist. Th|
|000003d0| 65 20 74 69 6d 65 20 73 | 74 61 6d 70 20 69 73 20 |e time s|tamp is |
|000003e0| 61 64 76 61 6e 63 65 64 | 0d 61 73 20 6d 61 6e 79 |advanced|.as many|
|000003f0| 20 73 65 63 6f 6e 64 73 | 20 61 73 20 6e 65 63 65 | seconds| as nece|
|00000400| 73 73 61 72 79 20 74 6f | 20 63 72 65 61 74 65 20 |ssary to| create |
|00000410| 61 20 75 6e 69 71 75 65 | 20 66 69 6c 65 20 6e 61 |a unique| file na|
|00000420| 6d 65 2e 0d 0d 54 68 65 | 20 69 6e 4e 61 6d 65 20 |me...The| inName |
|00000430| 73 74 72 69 6e 67 20 61 | 6c 6c 6f 63 61 74 69 6f |string a|llocatio|
|00000440| 6e 20 73 68 6f 75 6c 64 | 20 62 65 20 61 74 20 6c |n should| be at l|
|00000450| 65 61 73 74 20 33 32 20 | 62 79 74 65 73 2e 20 49 |east 32 |bytes. I|
|00000460| 20 73 75 67 67 65 73 74 | 20 74 68 65 20 6f 75 74 | suggest| the out|
|00000470| 4e 61 6d 65 20 0d 73 74 | 72 69 6e 67 20 61 6c 6c |Name .st|ring all|
|00000480| 6f 63 61 74 69 6f 6e 20 | 62 65 20 61 74 20 6c 65 |ocation |be at le|
|00000490| 61 73 74 20 34 30 20 62 | 79 74 65 73 2e 0d 0d 48 |ast 40 b|ytes...H|
|000004a0| 49 53 54 4f 52 59 3a 0d | 39 2f 31 34 2f 39 30 09 |ISTORY:.|9/14/90.|
|000004b0| 64 67 70 09 65 78 74 72 | 61 63 74 65 64 20 69 74 |dgp.extr|acted it|
|000004c0| 20 66 72 6f 6d 20 55 73 | 65 72 4f 70 65 6e 2e 63 | from Us|erOpen.c|
|000004d0| 2c 20 61 6e 64 20 63 6c | 65 61 6e 65 64 20 69 74 |, and cl|eaned it|
|000004e0| 20 75 70 20 66 6f 72 20 | 67 65 6e 65 72 61 6c 20 | up for |general |
|000004f0| 75 73 65 2e 0d 39 2f 31 | 35 2f 39 30 09 64 67 70 |use..9/1|5/90.dgp|
|00000500| 09 61 64 64 65 64 20 68 | 61 6e 64 6c 69 6e 67 20 |.added h|andling |
|00000510| 6f 66 20 73 70 65 63 69 | 61 6c 20 63 61 73 65 73 |of speci|al cases|
|00000520| 3a 20 66 69 6c 65 6e 61 | 6d 65 20 74 6f 6f 20 6c |: filena|me too l|
|00000530| 6f 6e 67 2c 20 66 69 6c | 65 20 0d 09 09 09 61 6c |ong, fil|e ....al|
|00000540| 72 65 61 64 79 20 65 78 | 69 73 74 73 2e 0d 31 30 |ready ex|ists..10|
|00000550| 2f 31 31 2f 39 30 20 64 | 67 70 20 4e 6f 77 20 79 |/11/90 d|gp Now y|
|00000560| 6f 75 20 63 61 6e 20 73 | 75 70 70 6c 79 20 4e 55 |ou can s|upply NU|
|00000570| 4c 4c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 61 6e |LL inste|ad of an|
|00000580| 79 20 6f 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |y of the| argumen|
|00000590| 74 73 2c 20 63 61 75 73 | 69 6e 67 20 74 68 65 0d |ts, caus|ing the.|
|000005a0| 09 09 09 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |...corre|sponding|
|000005b0| 20 71 75 65 73 74 69 6f | 6e 73 20 28 69 6e 70 75 | questio|ns (inpu|
|000005c0| 74 20 26 20 6f 75 74 70 | 75 74 20 66 69 6c 65 20 |t & outp|ut file |
|000005d0| 6e 61 6d 65 73 29 20 74 | 6f 20 62 65 20 73 6b 69 |names) t|o be ski|
|000005e0| 70 70 65 64 2e 0d 38 2f | 32 34 2f 39 31 09 64 67 |pped..8/|24/91.dg|
|000005f0| 70 09 4d 61 64 65 20 63 | 6f 6d 70 61 74 69 62 6c |p.Made c|ompatibl|
|00000600| 65 20 77 69 74 68 20 54 | 48 49 4e 4b 20 43 20 35 |e with T|HINK C 5|
|00000610| 2e 30 2e 0d 31 30 2f 32 | 33 2f 39 32 20 64 67 70 |.0..10/2|3/92 dgp|
|00000620| 20 54 72 65 61 74 20 73 | 69 6e 67 6c 65 2d 63 68 | Treat s|ingle-ch|
|00000630| 61 72 61 63 74 65 72 20 | 66 69 6c 65 6e 61 6d 65 |aracter |filename|
|00000640| 20 73 61 6d 65 20 61 73 | 20 6c 6f 6e 67 65 72 20 | same as| longer |
|00000650| 6e 61 6d 65 73 2e 0d 31 | 2f 32 35 2f 39 33 20 64 |names..1|/25/93 d|
|00000660| 67 70 20 72 65 6d 6f 76 | 65 64 20 6f 62 73 6f 6c |gp remov|ed obsol|
|00000670| 65 74 65 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ete supp|ort for |
|00000680| 54 48 49 4e 4b 20 43 20 | 34 2e 0d 2a 2f 0d 23 69 |THINK C |4..*/.#i|
|00000690| 6e 63 6c 75 64 65 20 22 | 56 69 64 65 6f 54 6f 6f |nclude "|VideoToo|
|000006a0| 6c 62 6f 78 2e 68 22 0d | 0d 75 6e 73 69 67 6e 65 |lbox.h".|.unsigne|
|000006b0| 64 20 6c 6f 6e 67 20 4f | 70 65 6e 44 61 74 61 46 |d long O|penDataF|
|000006c0| 69 6c 65 73 28 46 49 4c | 45 20 2a 2a 69 6e 50 74 |iles(FIL|E **inPt|
|000006d0| 72 2c 46 49 4c 45 20 2a | 2a 6f 75 74 50 74 72 2c |r,FILE *|*outPtr,|
|000006e0| 63 68 61 72 20 2a 69 6e | 4e 61 6d 65 2c 63 68 61 |char *in|Name,cha|
|000006f0| 72 20 2a 6f 75 74 4e 61 | 6d 65 29 0d 7b 0d 09 75 |r *outNa|me).{..u|
|00000700| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 73 65 63 |nsigned |long sec|
|00000710| 6f 6e 64 73 3b 0d 09 63 | 68 61 72 20 73 74 72 69 |onds;..c|har stri|
|00000720| 6e 67 5b 36 34 5d 3d 22 | 22 3b 0d 09 46 49 4c 45 |ng[64]="|";..FILE|
|00000730| 20 2a 69 6e 3b 0d 09 0d | 09 47 65 74 44 61 74 65 | *in;...|.GetDate|
|00000740| 54 69 6d 65 28 26 73 65 | 63 6f 6e 64 73 29 3b 0d |Time(&se|conds);.|
|00000750| 09 69 6e 3d 4e 55 4c 4c | 3b 0d 09 69 66 28 69 6e |.in=NULL|;..if(in|
|00000760| 50 74 72 21 3d 4e 55 4c | 4c 20 26 26 20 69 6e 4e |Ptr!=NUL|L && inN|
|00000770| 61 6d 65 21 3d 4e 55 4c | 4c 29 7b 0d 09 09 70 72 |ame!=NUL|L){...pr|
|00000780| 69 6e 74 66 28 22 50 6c | 65 61 73 65 20 65 6e 74 |intf("Pl|ease ent|
|00000790| 65 72 20 69 6e 70 75 74 | 20 66 69 6c 65 6e 61 6d |er input| filenam|
|000007a0| 65 2e 20 5c 6e 22 0d 09 | 09 09 22 45 78 74 65 6e |e. \n"..|.."Exten|
|000007b0| 73 69 6f 6e 20 2e 69 6e | 20 77 69 6c 6c 20 62 65 |sion .in| will be|
|000007c0| 20 61 64 64 65 64 2e 20 | 4a 75 73 74 20 63 72 20 | added. |Just cr |
|000007d0| 66 6f 72 20 6e 6f 6e 65 | 3a 22 29 3b 0d 09 09 67 |for none|:");...g|
|000007e0| 65 74 73 28 69 6e 4e 61 | 6d 65 29 3b 0d 09 09 73 |ets(inNa|me);...s|
|000007f0| 74 72 63 70 79 28 73 74 | 72 69 6e 67 2c 69 6e 4e |trcpy(st|ring,inN|
|00000800| 61 6d 65 29 3b 0d 09 09 | 69 66 28 73 74 72 6c 65 |ame);...|if(strle|
|00000810| 6e 28 69 6e 4e 61 6d 65 | 29 3e 30 29 7b 0d 09 09 |n(inName|)>0){...|
|00000820| 09 73 74 72 6e 63 61 74 | 28 69 6e 4e 61 6d 65 2c |.strncat|(inName,|
|00000830| 22 2e 69 6e 22 2c 35 29 | 3b 0d 09 09 09 69 6e 3d |".in",5)|;....in=|
|00000840| 66 6f 70 65 6e 28 69 6e | 4e 61 6d 65 2c 22 72 22 |fopen(in|Name,"r"|
|00000850| 29 3b 0d 09 09 09 69 66 | 28 69 6e 3d 3d 4e 55 4c |);....if|(in==NUL|
|00000860| 4c 29 50 72 69 6e 74 66 | 45 78 69 74 28 22 53 6f |L)Printf|Exit("So|
|00000870| 72 72 79 2c 20 63 61 6e | 27 74 20 66 69 6e 64 20 |rry, can|'t find |
|00000880| 5c 22 25 73 5c 22 2e 5c | 30 30 37 5c 6e 22 2c 69 |\"%s\".\|007\n",i|
|00000890| 6e 4e 61 6d 65 29 3b 0d | 09 09 7d 0d 09 7d 0d 09 |nName);.|..}..}..|
|000008a0| 69 66 28 69 6e 3d 3d 4e | 55 4c 4c 29 69 6e 3d 73 |if(in==N|ULL)in=s|
|000008b0| 74 64 69 6e 3b 0d 09 69 | 66 28 69 6e 50 74 72 21 |tdin;..i|f(inPtr!|
|000008c0| 3d 4e 55 4c 4c 29 2a 69 | 6e 50 74 72 3d 69 6e 3b |=NULL)*i|nPtr=in;|
|000008d0| 0d 09 69 66 28 6f 75 74 | 50 74 72 21 3d 4e 55 4c |..if(out|Ptr!=NUL|
|000008e0| 4c 20 26 26 20 6f 75 74 | 4e 61 6d 65 21 3d 4e 55 |L && out|Name!=NU|
|000008f0| 4c 4c 29 7b 0d 09 09 2a | 6f 75 74 50 74 72 3d 4e |LL){...*|outPtr=N|
|00000900| 55 4c 4c 3b 0d 09 09 69 | 66 28 73 74 72 6c 65 6e |ULL;...i|f(strlen|
|00000910| 28 73 74 72 69 6e 67 29 | 3d 3d 30 29 7b 0d 09 09 |(string)|==0){...|
|00000920| 09 70 72 69 6e 74 66 28 | 22 50 6c 65 61 73 65 20 |.printf(|"Please |
|00000930| 65 6e 74 65 72 20 6f 75 | 74 70 75 74 20 66 69 6c |enter ou|tput fil|
|00000940| 65 6e 61 6d 65 2e 20 5c | 6e 22 0d 09 09 09 09 22 |ename. \|n"....."|
|00000950| 45 78 74 65 6e 73 69 6f | 6e 20 2e 25 73 2e 64 61 |Extensio|n .%s.da|
|00000960| 74 61 20 77 69 6c 6c 20 | 62 65 20 61 64 64 65 64 |ta will |be added|
|00000970| 2e 5c 6e 22 0d 09 09 09 | 09 22 4a 75 73 74 20 63 |.\n"....|."Just c|
|00000980| 72 20 66 6f 72 20 6e 6f | 6e 65 3a 22 2c 44 61 74 |r for no|ne:",Dat|
|00000990| 65 64 53 74 72 69 6e 67 | 28 73 65 63 6f 6e 64 73 |edString|(seconds|
|000009a0| 29 29 3b 0d 09 09 09 66 | 67 65 74 73 28 73 74 72 |));....f|gets(str|
|000009b0| 69 6e 67 2c 73 69 7a 65 | 6f 66 28 73 74 72 69 6e |ing,size|of(strin|
|000009c0| 67 29 2d 31 2c 69 6e 29 | 3b 0d 09 09 09 69 66 28 |g)-1,in)|;....if(|
|000009d0| 73 74 72 6c 65 6e 28 73 | 74 72 69 6e 67 29 3e 30 |strlen(s|tring)>0|
|000009e0| 29 73 74 72 69 6e 67 5b | 73 74 72 6c 65 6e 28 73 |)string[|strlen(s|
|000009f0| 74 72 69 6e 67 29 2d 31 | 5d 3d 30 3b 09 09 2f 2a |tring)-1|]=0;../*|
|00000a00| 20 52 65 6d 6f 76 65 20 | 74 72 61 69 6c 69 6e 67 | Remove |trailing|
|00000a10| 20 63 72 20 2a 2f 0d 09 | 09 7d 0d 09 09 69 66 28 | cr */..|.}...if(|
|00000a20| 73 74 72 6c 65 6e 28 73 | 74 72 69 6e 67 29 3e 30 |strlen(s|tring)>0|
|00000a30| 29 7b 0d 09 09 09 67 6f | 74 6f 20 41 3b 0d 09 09 |){....go|to A;...|
|00000a40| 09 64 6f 7b 0d 09 09 09 | 09 69 66 28 73 74 72 6c |.do{....|.if(strl|
|00000a50| 65 6e 28 73 74 72 69 6e | 67 29 3e 30 29 73 74 72 |en(strin|g)>0)str|
|00000a60| 69 6e 67 5b 73 74 72 6c | 65 6e 28 73 74 72 69 6e |ing[strl|en(strin|
|00000a70| 67 29 2d 31 5d 3d 30 3b | 09 09 2f 2a 20 52 65 6d |g)-1]=0;|../* Rem|
|00000a80| 6f 76 65 20 6c 61 73 74 | 20 63 68 61 72 20 2a 2f |ove last| char */|
|00000a90| 0d 09 09 09 09 41 3a 20 | 73 70 72 69 6e 74 66 28 |.....A: |sprintf(|
|00000aa0| 6f 75 74 4e 61 6d 65 2c | 22 25 73 2e 25 73 2e 64 |outName,|"%s.%s.d|
|00000ab0| 61 74 61 22 2c 73 74 72 | 69 6e 67 2c 44 61 74 65 |ata",str|ing,Date|
|00000ac0| 64 53 74 72 69 6e 67 28 | 73 65 63 6f 6e 64 73 29 |dString(|seconds)|
|00000ad0| 29 3b 0d 09 09 09 7d 20 | 77 68 69 6c 65 28 73 74 |);....} |while(st|
|00000ae0| 72 6c 65 6e 28 6f 75 74 | 4e 61 6d 65 29 3e 33 31 |rlen(out|Name)>31|
|00000af0| 29 3b 09 09 2f 2a 20 6d | 61 78 20 6c 65 6e 67 74 |);../* m|ax lengt|
|00000b00| 68 20 66 6f 72 20 4d 61 | 63 20 66 69 6c 65 6e 61 |h for Ma|c filena|
|00000b10| 6d 65 20 2a 2f 0d 09 09 | 09 2a 6f 75 74 50 74 72 |me */...|.*outPtr|
|00000b20| 3d 66 6f 70 65 6e 28 6f | 75 74 4e 61 6d 65 2c 22 |=fopen(o|utName,"|
|00000b30| 72 22 29 3b 0d 09 09 09 | 69 66 28 2a 6f 75 74 50 |r");....|if(*outP|
|00000b40| 74 72 21 3d 4e 55 4c 4c | 29 7b 0d 09 09 09 09 66 |tr!=NULL|){.....f|
|00000b50| 63 6c 6f 73 65 28 2a 6f | 75 74 50 74 72 29 3b 0d |close(*o|utPtr);.|
|00000b60| 09 09 09 09 73 65 63 6f | 6e 64 73 2b 2b 3b 0d 09 |....seco|nds++;..|
|00000b70| 09 09 09 67 6f 74 6f 20 | 41 3b 0d 09 09 09 7d 0d |...goto |A;....}.|
|00000b80| 09 09 09 2a 6f 75 74 50 | 74 72 3d 66 6f 70 65 6e |...*outP|tr=fopen|
|00000b90| 28 6f 75 74 4e 61 6d 65 | 2c 22 77 22 29 3b 0d 09 |(outName|,"w");..|
|00000ba0| 09 09 69 66 28 2a 6f 75 | 74 50 74 72 3d 3d 4e 55 |..if(*ou|tPtr==NU|
|00000bb0| 4c 4c 29 50 72 69 6e 74 | 66 45 78 69 74 28 22 53 |LL)Print|fExit("S|
|00000bc0| 6f 72 72 79 2c 20 63 61 | 6e 27 74 20 63 72 65 61 |orry, ca|n't crea|
|00000bd0| 74 65 20 5c 22 25 73 5c | 22 2e 5c 30 30 37 5c 6e |te \"%s\|".\007\n|
|00000be0| 22 2c 6f 75 74 4e 61 6d | 65 29 3b 0d 09 09 7d 0d |",outNam|e);...}.|
|00000bf0| 09 09 69 66 28 2a 6f 75 | 74 50 74 72 21 3d 4e 55 |..if(*ou|tPtr!=NU|
|00000c00| 4c 4c 29 20 53 65 74 46 | 69 6c 65 49 6e 66 6f 28 |LL) SetF|ileInfo(|
|00000c10| 6f 75 74 4e 61 6d 65 2c | 27 54 45 58 54 27 2c 27 |outName,|'TEXT','|
|00000c20| 4b 41 48 4c 27 29 3b 0d | 09 7d 0d 09 72 65 74 75 |KAHL');.|.}..retu|
|00000c30| 72 6e 20 73 65 63 6f 6e | 64 73 3b 0d 7d 00 00 00 |rn secon|ds;.}...|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000c90| 00 00 08 29 00 04 00 00 | 00 07 07 00 00 00 14 7d |...)....|.......}|
|00000ca0| 00 30 00 00 00 04 07 00 | 00 00 17 99 00 10 00 00 |.0......|........|
|00000cb0| 0f 4f 70 65 6e 44 61 74 | 61 46 69 6c 65 73 2e 63 |.OpenDat|aFiles.c|
|00000cc0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 00 00 |....TEXT|CWIE....|
|00000cd0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 04 20 |..TEXTCW|IE..... |
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 a3 17 12 e3 00 00 | 0b bd 00 00 01 ac 1f 6e |........|.......n|
|00000d00| 00 a2 00 00 00 02 07 ff | 00 00 1f f6 00 20 00 00 |........|..... ..|
|00000d10| 00 0f 07 ff 00 00 1f f6 | 01 56 00 00 00 0b 07 ff |........|.V......|
|00000d20| 00 00 20 b3 00 fc 00 00 | 00 11 07 ff 00 00 22 81 |.. .....|......".|
|00000d30| 01 b8 00 00 00 0a 07 ff | 00 00 24 b7 00 3b 00 00 |........|..$..;..|
|00000d40| 00 12 07 ff 00 00 27 6e | 02 8b 00 00 00 13 07 ff |......'n|........|
|00000d50| 00 00 28 33 02 8b 00 00 | 00 14 07 00 00 00 28 40 |..(3....|......(@|
|00000d60| 00 04 00 00 00 15 07 00 | 00 00 28 40 00 9c 00 00 |........|..(@....|
|00000d70| 00 16 07 00 00 00 28 40 | 01 66 00 00 00 0c 07 ff |......(@|.f......|
|00000d80| 00 00 00 1e 01 18 00 00 | 01 dd 02 3d 01 18 00 00 |........|...=....|
|00000d90| 01 dd 02 3d 00 00 04 ce | 00 00 00 00 00 00 00 00 |...=....|........|
|00000da0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 06 00 04 00 2a 00 03 |........|.....*..|
|00000dd0| 01 dd 02 7d 01 17 00 04 | 01 dc 02 41 aa 0c 3b e0 |...}....|...A..;.|
|00000de0| 00 00 0a 47 00 00 0a 47 | 00 00 00 00 00 00 00 00 |...G...G|........|
|00000df0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 6b |.....n..|.n...>.k|
|00000e00| 80 80 1a 14 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000e10| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 03 ed ff ff 00 00 00 22 | 00 6b 7e 6c 00 00 00 00 |......."|.k~l....|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+