home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-09-27 | 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: PrintfExit.c
Confidence | Program | Detection | Match Type | Support
|
---|
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, Wed Sep 27 11:17:28 1995, modified Wed Sep 27 11:17:28 1995, creator 'CWIE', type ASCII, 2866 bytes "PrintfExit.c" , at 0xbb2 584 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 50 72 69 6e 74 66 | 45 78 69 74 2e 63 00 00 |..Printf|Exit.c..|
|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 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b 32 00 | 00 02 48 ac 8f 1b 88 ac |......2.|..H.....|
|00000060| 8f 1b 88 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 97 bf 00 00 |........|........|
|00000080| 2f 2a 20 0d 50 72 69 6e | 74 66 45 78 69 74 2e 63 |/* .Prin|tfExit.c|
|00000090| 0d 0d 50 72 69 6e 74 66 | 45 78 69 74 28 63 6f 6e |..Printf|Exit(con|
|000000a0| 73 74 20 63 68 61 72 20 | 2a 66 6f 72 6d 61 74 2c |st char |*format,|
|000000b0| 2e 2e 2e 29 3b 0d 69 73 | 20 6e 6f 72 6d 61 6c 6c |...);.is| normall|
|000000c0| 79 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |y equiva|lent to |
|000000d0| 63 61 6c 6c 69 6e 67 20 | 70 72 69 6e 74 66 20 61 |calling |printf a|
|000000e0| 6e 64 20 65 78 69 74 2e | 0d 0d 4c 6f 74 73 20 6f |nd exit.|..Lots o|
|000000f0| 66 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 20 72 |f VideoT|oolbox r|
|00000100| 6f 75 74 69 6e 65 73 2c | 20 77 68 65 6e 20 74 68 |outines,| when th|
|00000110| 65 79 20 66 69 6e 64 20 | 61 20 72 65 61 6c 6c 79 |ey find |a really|
|00000120| 20 67 72 69 65 76 6f 75 | 73 20 65 72 72 6f 72 2c | grievou|s error,|
|00000130| 20 70 72 69 6e 74 20 6f | 75 74 0d 61 20 6d 65 73 | print o|ut.a mes|
|00000140| 73 61 67 65 20 61 6e 64 | 20 65 78 69 74 2e 20 48 |sage and| exit. H|
|00000150| 61 76 69 6e 67 20 6f 6e | 65 20 72 6f 75 74 69 6e |aving on|e routin|
|00000160| 65 20 74 68 61 74 20 64 | 6f 65 73 20 62 6f 74 68 |e that d|oes both|
|00000170| 20 6d 61 6b 65 73 20 74 | 68 65 20 63 6f 64 65 20 | makes t|he code |
|00000180| 73 6c 69 67 68 74 6c 79 | 0d 6e 65 61 74 65 72 2c |slightly|.neater,|
|00000190| 20 73 69 6e 63 65 20 74 | 68 65 20 69 66 20 73 74 | since t|he if st|
|000001a0| 61 74 65 6d 65 6e 74 20 | 74 68 65 6e 20 64 6f 65 |atement |then doe|
|000001b0| 73 6e 27 74 20 6e 65 65 | 64 20 62 72 61 63 65 73 |sn't nee|d braces|
|000001c0| 2e 20 46 75 72 74 68 65 | 72 6d 6f 72 65 2c 20 62 |. Furthe|rmore, b|
|000001d0| 6f 74 68 20 6f 66 0d 74 | 68 65 73 65 20 66 75 6e |oth of.t|hese fun|
|000001e0| 63 74 69 6f 6e 73 2c 20 | 70 72 69 6e 74 66 2c 20 |ctions, |printf, |
|000001f0| 61 6e 64 20 65 78 69 74 | 20 61 72 65 20 6c 69 61 |and exit| are lia|
|00000200| 62 6c 65 20 74 6f 20 62 | 72 65 61 6b 20 69 6e 20 |ble to b|reak in |
|00000210| 66 6f 72 65 69 67 6e 20 | 65 6e 76 69 72 6f 6e 6d |foreign |environm|
|00000220| 65 6e 74 73 2c 0d 65 2e | 67 2e 20 77 68 65 6e 20 |ents,.e.|g. when |
|00000230| 72 75 6e 6e 69 6e 67 20 | 61 73 20 61 20 4d 45 58 |running |as a MEX|
|00000240| 20 72 65 73 6f 75 72 63 | 65 20 75 6e 64 65 72 20 | resourc|e under |
|00000250| 4d 41 54 4c 41 42 2e 20 | 4e 6f 77 20 74 68 65 20 |MATLAB. |Now the |
|00000260| 70 72 6f 62 6c 65 6d 20 | 69 73 20 63 6f 6e 66 69 |problem |is confi|
|00000270| 6e 65 64 20 74 6f 0d 74 | 68 69 73 20 66 69 6c 65 |ned to.t|his file|
|00000280| 2c 20 77 68 65 72 65 20 | 69 74 20 63 61 6e 20 62 |, where |it can b|
|00000290| 65 20 68 61 6e 64 6c 65 | 64 20 62 79 20 63 6f 6e |e handle|d by con|
|000002a0| 64 69 74 69 6f 6e 61 6c | 20 63 6f 6d 70 69 6c 61 |ditional| compila|
|000002b0| 74 69 6f 6e 2e 0d 0d 53 | 69 6e 63 65 20 50 72 69 |tion...S|ince Pri|
|000002c0| 6e 74 66 45 78 69 74 20 | 69 73 20 63 61 6c 6c 65 |ntfExit |is calle|
|000002d0| 64 20 6f 6e 6c 79 20 77 | 68 65 6e 20 77 65 27 72 |d only w|hen we'r|
|000002e0| 65 20 6e 65 61 72 20 64 | 65 61 74 68 2c 20 69 74 |e near d|eath, it|
|000002f0| 20 73 65 65 6d 73 20 70 | 72 75 64 65 6e 74 20 74 | seems p|rudent t|
|00000300| 6f 20 6d 61 6b 65 0d 73 | 75 72 65 20 74 68 65 72 |o make.s|ure ther|
|00000310| 65 27 73 20 65 6e 6f 75 | 67 68 20 73 74 61 63 6b |e's enou|gh stack|
|00000320| 20 73 70 61 63 65 20 62 | 65 66 6f 72 65 20 63 61 | space b|efore ca|
|00000330| 6c 6c 69 6e 67 20 70 72 | 69 6e 74 66 2c 20 77 68 |lling pr|intf, wh|
|00000340| 69 63 68 20 63 72 61 73 | 68 65 73 20 69 66 20 74 |ich cras|hes if t|
|00000350| 68 65 72 65 27 73 0d 6c | 65 73 73 20 74 68 61 6e |here's.l|ess than|
|00000360| 20 61 62 6f 75 74 20 34 | 35 30 30 20 62 79 74 73 | about 4|500 byts|
|00000370| 20 6f 66 20 73 74 61 63 | 6b 2e 20 4e 6f 74 65 20 | of stac|k. Note |
|00000380| 74 68 61 74 20 53 74 61 | 63 6b 47 72 6f 77 28 29 |that Sta|ckGrow()|
|00000390| 20 6d 6f 76 65 73 20 6d | 65 6d 6f 72 79 2e 0d 0d | moves m|emory...|
|000003a0| 49 27 76 65 20 72 65 70 | 6c 61 63 65 64 20 61 6c |I've rep|laced al|
|000003b0| 6c 20 63 61 6c 6c 73 20 | 74 6f 20 65 78 69 74 28 |l calls |to exit(|
|000003c0| 29 20 69 6e 20 74 68 65 | 20 65 6e 74 69 72 65 20 |) in the| entire |
|000003d0| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 20 62 79 20 |VideoToo|lbox by |
|000003e0| 63 61 6c 6c 73 20 74 6f | 0d 50 72 69 6e 74 66 45 |calls to|.PrintfE|
|000003f0| 78 69 74 28 29 2e 0d 0d | 53 74 61 63 6b 47 72 6f |xit()...|StackGro|
|00000400| 77 28 29 20 69 73 20 64 | 65 66 69 6e 65 64 20 69 |w() is d|efined i|
|00000410| 6e 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 2e 68 |n VideoT|oolbox.h|
|00000420| 2e 0d 0d 48 49 53 54 4f | 52 59 3a 0d 32 2f 32 30 |...HISTO|RY:.2/20|
|00000430| 2f 39 33 09 64 67 70 09 | 57 72 6f 74 65 20 69 74 |/93.dgp.|Wrote it|
|00000440| 20 62 61 73 65 64 20 6f | 6e 20 63 6f 6e 76 65 72 | based o|n conver|
|00000450| 73 61 74 69 6f 6e 20 77 | 69 74 68 20 44 61 76 69 |sation w|ith Davi|
|00000460| 64 20 42 72 61 69 6e 61 | 72 64 2e 0d 37 2f 39 2f |d Braina|rd..7/9/|
|00000470| 39 33 09 64 67 70 09 54 | 65 73 74 20 4d 41 54 4c |93.dgp.T|est MATL|
|00000480| 41 42 20 69 6e 20 23 69 | 66 20 69 6e 73 74 65 61 |AB in #i|f instea|
|00000490| 64 20 6f 66 20 23 69 66 | 64 65 66 2e 0d 39 2f 31 |d of #if|def..9/1|
|000004a0| 32 2f 39 33 09 64 67 70 | 09 4d 6f 76 65 64 20 52 |2/93.dgp|.Moved R|
|000004b0| 65 71 75 69 72 65 64 28 | 29 20 74 6f 20 52 65 71 |equired(|) to Req|
|000004c0| 75 69 72 65 2e 63 2e 0d | 39 2f 31 35 2f 39 33 09 |uire.c..|9/15/93.|
|000004d0| 64 67 70 09 41 64 64 65 | 64 20 22 63 6f 6e 73 74 |dgp.Adde|d "const|
|000004e0| 22 20 74 6f 20 70 72 6f | 74 6f 74 79 70 65 2e 0d |" to pro|totype..|
|000004f0| 36 2f 37 2f 39 35 09 64 | 68 62 2c 20 67 6d 62 20 |6/7/95.d|hb, gmb |
|00000500| 53 49 4f 55 58 20 73 74 | 75 66 66 20 63 6f 6e 64 |SIOUX st|uff cond|
|00000510| 69 74 69 6f 6e 61 6c 20 | 6f 6e 20 6e 6f 74 20 4d |itional |on not M|
|00000520| 41 54 4c 41 42 0d 39 2f | 32 37 2f 39 35 20 64 67 |ATLAB.9/|27/95 dg|
|00000530| 70 20 53 49 4f 55 58 20 | 73 74 75 66 66 20 63 6f |p SIOUX |stuff co|
|00000540| 6e 64 69 74 69 6f 6e 61 | 6c 20 6f 6e 20 4d 41 43 |nditiona|l on MAC|
|00000550| 5f 43 0d 2a 2f 0d 23 69 | 6e 63 6c 75 64 65 20 22 |_C.*/.#i|nclude "|
|00000560| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 2e 68 22 0d |VideoToo|lbox.h".|
|00000570| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 61 72 67 |#include| <stdarg|
|00000580| 2e 68 3e 09 09 09 2f 2a | 20 66 6f 72 20 76 61 72 |.h>.../*| for var|
|00000590| 69 61 62 6c 65 2d 6e 75 | 6d 62 65 72 2d 6f 66 2d |iable-nu|mber-of-|
|000005a0| 61 72 67 75 6d 65 6e 74 | 20 6d 61 63 72 6f 73 20 |argument| macros |
|000005b0| 2a 2f 0d 0d 69 6e 74 20 | 50 72 69 6e 74 66 45 78 |*/..int |PrintfEx|
|000005c0| 69 74 28 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 66 |it(const| char *f|
|000005d0| 6f 72 6d 61 74 2c 2e 2e | 2e 29 0d 7b 0d 09 76 61 |ormat,..|.).{..va|
|000005e0| 5f 6c 69 73 74 20 61 72 | 67 73 3b 0d 09 69 6e 74 |_list ar|gs;..int|
|000005f0| 20 69 3b 0d 09 6c 6f 6e | 67 20 71 44 3d 30 3b 0d | i;..lon|g qD=0;.|
|00000600| 20 20 0d 09 23 69 66 20 | 4d 41 43 5f 43 0d 09 09 | ..#if |MAC_C...|
|00000610| 23 69 66 20 5f 5f 4d 57 | 45 52 4b 53 5f 5f 20 26 |#if __MW|ERKS__ &|
|00000620| 26 20 21 4d 41 54 4c 41 | 42 0d 09 09 09 53 49 4f |& !MATLA|B....SIO|
|00000630| 55 58 53 65 74 74 69 6e | 67 73 2e 61 75 74 6f 63 |UXSettin|gs.autoc|
|00000640| 6c 6f 73 65 6f 6e 71 75 | 69 74 3d 30 3b 0d 09 09 |loseonqu|it=0;...|
|00000650| 23 65 6e 64 69 66 0d 09 | 09 2f 2a 0d 09 09 54 68 |#endif..|./*...Th|
|00000660| 65 20 6d 61 69 6e 20 70 | 72 6f 67 72 61 6d 20 6d |e main p|rogram m|
|00000670| 61 79 20 68 61 76 65 20 | 63 68 61 6e 67 65 64 20 |ay have |changed |
|00000680| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 65 76 69 |the curr|ent devi|
|00000690| 63 65 2e 20 4c 65 74 27 | 73 0d 09 09 72 65 73 74 |ce. Let'|s...rest|
|000006a0| 6f 72 65 20 74 68 65 20 | 6d 61 69 6e 20 64 65 76 |ore the |main dev|
|000006b0| 69 63 65 20 62 65 66 6f | 72 65 20 64 6f 69 6e 67 |ice befo|re doing|
|000006c0| 20 74 68 65 20 70 72 69 | 6e 74 66 2e 20 4d 6f 73 | the pri|ntf. Mos|
|000006d0| 74 20 53 74 61 6e 64 61 | 72 64 20 43 20 6c 69 62 |t Standa|rd C lib|
|000006e0| 72 61 72 69 65 73 0d 09 | 09 6f 6e 20 74 68 65 20 |raries..|.on the |
|000006f0| 4d 61 63 20 63 72 61 73 | 68 20 69 66 20 79 6f 75 |Mac cras|h if you|
|00000700| 20 63 61 6c 6c 20 70 72 | 69 6e 74 66 20 61 6e 64 | call pr|intf and|
|00000710| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 65 76 | the cur|rent dev|
|00000720| 69 63 65 20 69 73 20 6e | 6f 74 20 74 68 65 20 6d |ice is n|ot the m|
|00000730| 61 69 6e 0d 09 09 64 65 | 76 69 63 65 2e 20 49 27 |ain...de|vice. I'|
|00000740| 76 65 20 73 75 67 67 65 | 73 74 65 64 20 74 6f 20 |ve sugge|sted to |
|00000750| 62 6f 74 68 20 53 79 6d | 61 6e 74 65 63 20 61 6e |both Sym|antec an|
|00000760| 64 20 4d 65 74 72 6f 77 | 65 72 6b 73 20 74 68 61 |d Metrow|erks tha|
|00000770| 74 20 74 68 65 69 72 20 | 73 74 64 6f 75 74 20 63 |t their |stdout c|
|00000780| 6f 6e 73 6f 6c 65 20 63 | 6f 64 65 0d 09 09 63 6f |onsole c|ode...co|
|00000790| 75 6c 64 20 65 61 73 69 | 6c 79 20 74 61 6b 65 20 |uld easi|ly take |
|000007a0| 74 68 65 20 70 72 65 63 | 61 75 74 69 6f 6e 20 6f |the prec|aution o|
|000007b0| 66 20 65 6e 73 75 72 69 | 6e 67 20 74 68 61 74 20 |f ensuri|ng that |
|000007c0| 74 68 65 20 4d 61 69 6e | 44 65 76 69 63 65 20 69 |the Main|Device i|
|000007d0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 65 |s the cu|rrent de|
|000007e0| 76 69 63 65 20 0d 09 09 | 28 74 6f 20 73 65 74 20 |vice ...|(to set |
|000007f0| 26 20 72 65 73 74 6f 72 | 65 2c 20 69 66 20 6e 65 |& restor|e, if ne|
|00000800| 63 65 73 73 61 72 79 2c | 20 6f 72 20 61 74 20 6c |cessary,| or at l|
|00000810| 65 61 73 74 20 6e 6f 74 | 20 63 72 61 73 68 29 2c |east not| crash),|
|00000820| 20 0d 09 09 62 75 74 2c | 20 6c 61 73 74 20 49 20 | ...but,| last I |
|00000830| 63 68 65 63 6b 65 64 2c | 20 74 68 65 79 20 74 6f |checked,| they to|
|00000840| 6f 6b 20 6e 6f 20 68 65 | 65 64 2e 0d 09 09 2a 2f |ok no he|ed....*/|
|00000850| 0d 09 09 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |...Gesta|lt(gesta|
|00000860| 6c 74 51 75 69 63 6b 64 | 72 61 77 56 65 72 73 69 |ltQuickd|rawVersi|
|00000870| 6f 6e 2c 26 71 44 29 3b | 0d 09 09 69 66 28 71 44 |on,&qD);|...if(qD|
|00000880| 3e 3d 67 65 73 74 61 6c | 74 38 42 69 74 51 44 29 |>=gestal|t8BitQD)|
|00000890| 53 65 74 47 44 65 76 69 | 63 65 28 47 65 74 4d 61 |SetGDevi|ce(GetMa|
|000008a0| 69 6e 44 65 76 69 63 65 | 28 29 29 3b 0d 09 09 2f |inDevice|());.../|
|000008b0| 2f 69 66 28 53 74 61 63 | 6b 53 70 61 63 65 28 29 |/if(Stac|kSpace()|
|000008c0| 3c 36 30 30 30 29 53 74 | 61 63 6b 47 72 6f 77 28 |<6000)St|ackGrow(|
|000008d0| 36 30 30 30 2d 53 74 61 | 63 6b 53 70 61 63 65 28 |6000-Sta|ckSpace(|
|000008e0| 29 29 3b 0d 09 23 65 6e | 64 69 66 0d 09 23 69 66 |));..#en|dif..#if|
|000008f0| 20 21 4d 41 54 4c 41 42 | 0d 09 09 23 69 66 20 4d | !MATLAB|...#if M|
|00000900| 41 43 5f 43 0d 09 09 09 | 2f 2a 20 70 72 69 6e 74 |AC_C....|/* print|
|00000910| 66 20 63 72 61 73 68 65 | 73 20 69 66 20 74 68 65 |f crashe|s if the|
|00000920| 72 65 27 73 20 6c 65 73 | 73 20 74 68 61 6e 20 61 |re's les|s than a|
|00000930| 62 6f 75 74 20 34 35 30 | 30 20 62 79 74 65 73 20 |bout 450|0 bytes |
|00000940| 6f 66 20 73 74 61 63 6b | 20 73 70 61 63 65 20 2a |of stack| space *|
|00000950| 2f 0d 09 09 09 69 66 28 | 53 74 61 63 6b 53 70 61 |/....if(|StackSpa|
|00000960| 63 65 28 29 3c 35 30 30 | 30 29 7b 0d 09 09 09 09 |ce()<500|0){.....|
|00000970| 53 79 73 42 65 65 70 28 | 32 30 29 3b 0d 09 09 09 |SysBeep(|20);....|
|00000980| 09 65 78 69 74 28 45 58 | 49 54 5f 46 41 49 4c 55 |.exit(EX|IT_FAILU|
|00000990| 52 45 29 3b 0d 09 09 09 | 7d 0d 09 09 23 65 6e 64 |RE);....|}...#end|
|000009a0| 69 66 0d 09 09 76 61 5f | 73 74 61 72 74 28 61 72 |if...va_|start(ar|
|000009b0| 67 73 2c 66 6f 72 6d 61 | 74 29 3b 0d 09 09 69 3d |gs,forma|t);...i=|
|000009c0| 76 66 70 72 69 6e 74 66 | 28 73 74 64 6f 75 74 2c |vfprintf|(stdout,|
|000009d0| 66 6f 72 6d 61 74 2c 61 | 72 67 73 29 3b 0d 09 09 |format,a|rgs);...|
|000009e0| 76 61 5f 65 6e 64 28 61 | 72 67 73 29 3b 0d 09 09 |va_end(a|rgs);...|
|000009f0| 23 69 66 20 5f 5f 4d 57 | 45 52 4b 53 5f 5f 0d 09 |#if __MW|ERKS__..|
|00000a00| 09 09 70 72 69 6e 74 66 | 28 22 48 69 74 20 43 6f |..printf|("Hit Co|
|00000a10| 6d 6d 61 6e 64 2d 51 20 | 74 6f 20 71 75 69 74 2e |mmand-Q |to quit.|
|00000a20| 5c 6e 22 29 3b 0d 09 09 | 23 65 6e 64 69 66 0d 09 |\n");...|#endif..|
|00000a30| 09 65 78 69 74 28 45 58 | 49 54 5f 46 41 49 4c 55 |.exit(EX|IT_FAILU|
|00000a40| 52 45 29 3b 0d 09 23 65 | 6c 73 65 0d 09 7b 0d 09 |RE);..#e|lse..{..|
|00000a50| 09 63 68 61 72 20 73 5b | 32 35 36 5d 3b 0d 09 09 |.char s[|256];...|
|00000a60| 2f 2a 0d 09 09 09 22 73 | 22 20 72 65 6d 61 69 6e |/*...."s|" remain|
|00000a70| 73 20 76 61 6c 69 64 20 | 69 6e 20 6d 65 78 5f 65 |s valid |in mex_e|
|00000a80| 72 72 6f 72 28 73 29 20 | 27 63 61 75 73 65 20 77 |rror(s) |'cause w|
|00000a90| 65 20 67 65 74 20 74 68 | 65 72 65 20 62 79 20 6d |e get th|ere by m|
|00000aa0| 61 6b 69 6e 67 0d 09 09 | 09 61 20 73 75 62 72 6f |aking...|.a subro|
|00000ab0| 75 74 69 6e 65 20 63 61 | 6c 6c 2c 20 6e 6f 74 20 |utine ca|ll, not |
|00000ac0| 61 20 72 65 74 75 72 6e | 2c 20 73 6f 20 74 68 65 |a return|, so the|
|00000ad0| 20 73 74 61 63 6b 20 73 | 70 61 63 65 20 75 73 65 | stack s|pace use|
|00000ae0| 64 20 66 6f 72 20 73 0d | 09 09 09 72 65 6d 61 69 |d for s.|...remai|
|00000af0| 6e 73 20 61 6c 6c 6f 63 | 61 74 65 64 2e 0d 09 09 |ns alloc|ated....|
|00000b00| 2a 2f 0d 09 09 0d 09 09 | 76 61 5f 73 74 61 72 74 |*/......|va_start|
|00000b10| 28 61 72 67 73 2c 66 6f | 72 6d 61 74 29 3b 0d 09 |(args,fo|rmat);..|
|00000b20| 09 69 3d 76 73 70 72 69 | 6e 74 66 28 73 2c 66 6f |.i=vspri|ntf(s,fo|
|00000b30| 72 6d 61 74 2c 61 72 67 | 73 29 3b 0d 09 09 76 61 |rmat,arg|s);...va|
|00000b40| 5f 65 6e 64 28 61 72 67 | 73 29 3b 0d 09 09 6d 65 |_end(arg|s);...me|
|00000b50| 78 5f 65 72 72 6f 72 28 | 73 29 3b 09 2f 2a 20 41 |x_error(|s);./* A|
|00000b60| 73 6b 20 4d 41 54 4c 41 | 42 20 74 6f 20 72 65 70 |sk MATLA|B to rep|
|00000b70| 6f 72 74 20 74 68 65 20 | 65 72 72 6f 72 2e 20 2a |ort the |error. *|
|00000b80| 2f 0d 09 7d 0d 09 23 65 | 6e 64 69 66 0d 09 72 65 |/..}..#e|ndif..re|
|00000b90| 74 75 72 6e 20 30 3b 09 | 09 09 2f 2a 20 63 61 6e |turn 0;.|../* can|
|00000ba0| 27 74 20 67 65 74 20 68 | 65 72 65 20 2a 2f 0d 7d |'t get h|ere */.}|
|00000bb0| 0d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 01 00 00 00 01 c2 | 00 00 00 c2 00 00 00 86 |........|........|
|00000c10| 20 3d 20 30 78 41 38 46 | 46 3b 20 0d 70 61 73 63 | = 0xA8F|F; .pasc|
|00000c20| 61 6c 20 76 6f 69 64 20 | 47 65 74 46 4e 75 6d 28 |al void |GetFNum(|
|00000c30| 0c 50 72 69 6e 74 66 45 | 78 69 74 2e 63 45 02 00 |.PrintfE|xit.cE..|
|00000c40| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 04 20 |..TEXTCW|IE...d. |
|00000c50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 04 20 |..TEXTCW|IE...d. |
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 a7 ab 5f 13 00 00 | 0b 32 00 00 02 48 73 68 |...._...|.2...Hsh|
|00000c80| 6f 72 74 20 66 6f 6e 74 | 4e 75 6d 2c 73 68 6f 72 |ort font|Num,shor|
|00000c90| 74 20 73 69 7a 65 29 0d | 20 20 20 20 3d 20 30 78 |t size).| = 0x|
|00000ca0| 41 39 30 32 3b 20 0d 70 | 61 73 63 61 6c 20 76 6f |A902; .p|ascal vo|
|00000cb0| 69 64 20 53 65 74 46 6f | 6e 74 4c 6f 63 6b 28 42 |id SetFo|ntLock(B|
|00000cc0| 6f 6f 6c 65 61 6e 20 6c | 6f 63 6b 46 6c 61 67 29 |oolean l|ockFlag)|
|00000cd0| 0d 20 20 20 20 3d 20 30 | 78 41 39 30 33 3b 20 0d |. = 0|xA903; .|
|00000ce0| 70 61 73 63 61 6c 20 46 | 4d 4f 75 74 50 74 72 20 |pascal F|MOutPtr |
|00000cf0| 46 4d 53 77 61 70 46 6f | 6e 74 28 63 6f 6e 73 74 |FMSwapFo|nt(const|
|00000d00| 00 00 00 16 00 01 00 14 | 00 00 07 fc 00 42 00 51 |........|.....B.Q|
|00000d10| cf 24 10 02 05 76 61 6c | 75 65 00 00 00 14 00 00 |.$...val|ue......|
|00000d20| 06 b3 ff ff 00 00 00 00 | 00 00 10 d1 ff ff 00 00 |........|........|
|00000d30| 00 00 00 00 00 16 00 01 | 00 00 05 0a 00 00 05 1f |........|........|
|00000d40| 0b 50 72 69 6e 74 66 45 | 78 69 74 00 00 00 00 1e |.PrintfE|xit.....|
|00000d50| 00 3e 00 04 01 7d 02 63 | 00 3e 00 04 01 7d 02 63 |.>...}.c|.>...}.c|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 03 00 04 | 00 57 00 04 01 e6 02 63 |........|.W.....c|
|00000da0| 00 57 00 04 01 e6 02 63 | ad b6 79 5d 00 00 05 38 |.W.....c|..y]...8|
|00000db0| 00 00 05 42 00 00 00 00 | 00 00 00 00 00 04 00 01 |...B....|........|
|00000dc0| 00 01 00 00 01 00 00 00 | 01 c2 00 00 00 c2 00 00 |........|........|
|00000dd0| 00 86 01 6c f1 68 3a c2 | 00 00 00 1c 00 86 00 03 |...l.h:.|........|
|00000de0| 4d 50 53 52 00 02 00 22 | 44 54 56 55 00 00 00 46 |MPSR..."|DTVU...F|
|00000df0| 42 4b 50 54 00 00 00 52 | 4d 57 42 42 00 00 00 5e |BKPT...R|MWBB...^|
|00000e00| 03 ef ff ff 00 00 00 32 | 00 00 00 00 03 f0 ff ff |.......2|........|
|00000e10| 00 00 00 4c 00 00 00 00 | 03 ed ff ff 00 00 00 6e |...L....|.......n|
|00000e20| 00 00 00 00 4d e8 ff ff | 00 00 00 00 00 00 00 00 |....M...|........|
|00000e30| 3b 06 ff ff 00 00 00 1a | 00 00 00 00 03 f0 ff ff |;.......|........|
|00000e40| 00 00 00 ba 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+