home *** CD-ROM | disk | FTP | other *** search
/ Software Recommendations - 1998 Season 1 / DNBCD4.iso / share / wintool / help / helpdeco / ZAPRES.C < prev    next >
Unknown  |  1996-09-13  |  4.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
88% TrID null bytes default (weak)
11% TrID HomeLab/BraiLab Tape image default (weak)
0% TrID MacBinary 1 default (weak)
0% TrID Memo File Apollo Database Engine default (weak)
0% TrID VXD Driver default (weak)
100% dexmagic TextWare CDT (WEAK) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 5d 3b 0d 0a 0d 0a 20 20 | 20 20 66 6f 72 28 62 3d |];.... | for(b=|
|00000810| 69 3d 31 3b 69 3c 61 72 | 67 63 3b 69 2b 2b 29 0d |i=1;i<ar|gc;i++).|
|00000820| 0a 20 20 20 20 7b 0d 0a | 09 69 66 28 73 74 72 69 |. {..|.if(stri|
|00000830| 63 6d 70 28 61 72 67 76 | 5b 69 5d 2c 22 2f 62 22 |cmp(argv|[i],"/b"|
|00000840| 29 21 3d 30 26 26 73 74 | 72 69 63 6d 70 28 61 72 |)!=0&&st|ricmp(ar|
|00000850| 67 76 5b 69 5d 2c 22 2d | 62 22 29 21 3d 30 29 0d |gv[i],"-|b")!=0).|
|00000860| 0a 09 7b 0d 0a 09 20 20 | 20 20 61 72 67 76 5b 62 |..{... | argv[b|
|00000870| 2b 2b 5d 3d 61 72 67 76 | 5b 69 5d 3b 0d 0a 09 7d |++]=argv|[i];...}|
|00000880| 0d 0a 20 20 20 20 7d 0d | 0a 20 20 20 20 69 66 28 |.. }.|. if(|
|00000890| 62 3c 32 29 0d 0a 20 20 | 20 20 7b 0d 0a 09 70 72 |b<2).. | {...pr|
|000008a0| 69 6e 74 66 28 22 5a 41 | 50 52 45 53 20 2d 20 72 |intf("ZA|PRES - r|
|000008b0| 65 6d 6f 76 65 73 20 72 | 65 73 6f 6c 75 74 69 6f |emoves r|esolutio|
|000008c0| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 72 |n inform|ation fr|
|000008d0| 6f 6d 20 57 69 6e 64 6f | 77 73 20 62 69 74 6d 61 |om Windo|ws bitma|
|000008e0| 70 20 66 69 6c 65 73 20 | 2d 20 56 65 72 73 69 6f |p files |- Versio|
|000008f0| 6e 20 31 2e 31 5c 6e 22 | 0d 0a 09 20 20 20 20 20 |n 1.1\n"|... |
|00000900| 20 20 22 4d 2e 57 69 6e | 74 65 72 68 6f 66 66 2c | "M.Win|terhoff,|
|00000910| 20 47 65 73 63 68 77 2e | 2d 53 63 68 6f 6c 6c 2d | Geschw.|-Scholl-|
|00000920| 52 69 6e 67 20 31 37 2c | 20 33 38 34 34 34 20 57 |Ring 17,| 38444 W|
|00000930| 6f 6c 66 73 62 75 72 67 | 2c 20 47 65 72 6d 61 6e |olfsburg|, German|
|00000940| 79 2c 20 43 49 53 20 31 | 30 30 33 32 36 2c 32 37 |y, CIS 1|00326,27|
|00000950| 37 36 5c 6e 22 0d 0a 09 | 20 20 20 20 20 20 20 22 |76\n"...| "|
|00000960| 5c 6e 22 0d 0a 09 20 20 | 20 20 20 20 20 22 75 73 |\n"... | "us|
|00000970| 61 67 65 3a 09 5a 41 50 | 52 45 53 20 66 69 6c 65 |age:.ZAP|RES file|
|00000980| 6e 61 6d 65 31 5b 2e 42 | 4d 50 5d 20 66 69 6c 65 |name1[.B|MP] file|
|00000990| 6e 61 6d 65 32 5b 2e 42 | 4d 50 5d 20 2e 2e 2e 5c |name2[.B|MP] ...\|
|000009a0| 6e 22 0d 0a 09 20 20 20 | 20 20 20 20 22 5c 6e 22 |n"... | "\n"|
|000009b0| 0d 0a 09 20 20 20 20 20 | 20 20 22 6f 70 74 69 6f |... | "optio|
|000009c0| 6e 3a 20 4e 6f 72 6d 61 | 6c 6c 79 20 5a 41 50 52 |n: Norma|lly ZAPR|
|000009d0| 45 53 20 77 69 6c 6c 20 | 63 72 65 61 74 65 20 61 |ES will |create a|
|000009e0| 20 2e 42 41 4b 20 66 69 | 6c 65 20 62 65 66 6f 72 | .BAK fi|le befor|
|000009f0| 65 20 69 74 20 61 74 74 | 65 6d 70 74 73 20 74 6f |e it att|empts to|
|00000a00| 20 6d 6f 64 69 66 79 5c | 6e 22 0d 0a 09 20 20 20 | modify\|n"... |
|00000a10| 20 20 20 20 22 09 74 68 | 65 20 69 6e 70 75 74 20 | ".th|e input |
|00000a20| 66 69 6c 65 2e 20 53 70 | 65 63 69 66 79 20 6f 70 |file. Sp|ecify op|
|00000a30| 74 69 6f 6e 20 2f 62 20 | 69 66 20 79 6f 75 20 64 |tion /b |if you d|
|00000a40| 6f 6e 27 74 20 77 61 6e | 74 20 74 6f 20 62 61 63 |on't wan|t to bac|
|00000a50| 6b 75 70 20 66 69 6c 65 | 73 2e 5c 6e 22 0d 0a 09 |kup file|s.\n"...|
|00000a60| 20 20 20 20 20 20 20 22 | 5c 6e 22 0d 0a 09 20 20 | "|\n"... |
|00000a70| 20 20 20 20 20 22 54 68 | 69 73 20 70 72 6f 67 72 | "Th|is progr|
|00000a80| 61 6d 20 72 65 6d 6f 76 | 65 73 20 74 68 65 20 72 |am remov|es the r|
|00000a90| 65 73 6f 6c 75 74 69 6f | 6e 20 69 6e 66 6f 72 6d |esolutio|n inform|
|00000aa0| 61 74 69 6f 6e 20 66 72 | 6f 6d 20 57 69 6e 64 6f |ation fr|om Windo|
|00000ab0| 77 73 20 2e 42 4d 50 20 | 62 69 74 6d 61 70 73 2c |ws .BMP |bitmaps,|
|00000ac0| 20 2e 4d 52 42 5c 6e 22 | 0d 0a 09 20 20 20 20 20 | .MRB\n"|... |
|00000ad0| 20 20 22 6d 75 6c 74 69 | 20 72 65 73 6f 6c 75 74 | "multi| resolut|
|00000ae0| 69 6f 6e 20 62 69 74 6d | 61 70 73 2c 20 61 6e 64 |ion bitm|aps, and|
|00000af0| 20 2e 53 48 47 20 73 65 | 67 6d 65 6e 74 65 64 20 | .SHG se|gmented |
|00000b00| 68 6f 74 73 70 6f 74 20 | 67 72 61 70 68 69 63 73 |hotspot |graphics|
|00000b10| 2e 20 54 68 69 73 20 77 | 61 79 20 57 69 6e 48 65 |. This w|ay WinHe|
|00000b20| 6c 70 5c 6e 22 0d 0a 09 | 20 20 20 20 20 20 20 22 |lp\n"...| "|
|00000b30| 77 69 6c 6c 20 6e 6f 74 | 20 72 65 73 63 61 6c 65 |will not| rescale|
|00000b40| 20 74 68 65 20 69 6d 61 | 67 65 20 61 6e 64 20 4d | the ima|ge and M|
|00000b50| 52 42 43 20 63 61 6e 20 | 62 65 20 61 70 70 6c 69 |RBC can |be appli|
|00000b60| 65 64 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 20 |ed to sp|ecify a |
|00000b70| 6e 65 77 20 72 65 73 6f | 6c 75 74 69 6f 6e 2e 5c |new reso|lution.\|
|00000b80| 6e 22 0d 0a 09 20 20 20 | 20 20 20 20 22 5c 6e 22 |n"... | "\n"|
|00000b90| 0d 0a 09 20 20 20 20 20 | 20 20 22 54 68 69 73 20 |... | "This |
|00000ba0| 70 72 6f 67 72 61 6d 20 | 69 73 20 66 72 65 65 77 |program |is freew|
|00000bb0| 61 72 65 2e 20 55 73 65 | 20 61 74 20 79 6f 75 72 |are. Use| at your|
|00000bc0| 20 6f 77 6e 20 72 69 73 | 6b 2e 20 4e 6f 20 70 61 | own ris|k. No pa|
|00000bd0| 72 74 20 6f 66 20 69 74 | 20 6d 61 79 20 62 65 20 |rt of it| may be |
|00000be0| 75 73 65 64 5c 6e 22 0d | 0a 09 20 20 20 20 20 20 |used\n".|.. |
|00000bf0| 20 22 63 6f 6d 6d 65 72 | 63 69 61 6c 6c 79 2e 20 | "commer|cially. |
|00000c00| 4e 6f 20 66 65 65 73 20 | 6d 61 79 20 62 65 20 63 |No fees |may be c|
|00000c10| 68 61 72 67 65 64 20 6f | 6e 20 64 69 73 74 72 69 |harged o|n distri|
|00000c20| 62 75 74 69 6e 67 2e 5c | 6e 22 29 3b 0d 0a 20 20 |buting.\|n");.. |
|00000c30| 20 20 7d 0d 0a 20 20 20 | 20 65 6c 73 65 20 66 6f | }.. | else fo|
|00000c40| 72 28 69 3d 31 3b 69 3c | 62 3b 69 2b 2b 29 0d 0a |r(i=1;i<|b;i++)..|
|00000c50| 20 20 20 20 7b 0d 0a 09 | 5f 73 70 6c 69 74 70 61 | {...|_splitpa|
|00000c60| 74 68 28 61 72 67 76 5b | 69 5d 2c 64 72 69 76 65 |th(argv[|i],drive|
|00000c70| 2c 64 69 72 2c 66 6e 61 | 6d 65 2c 65 78 74 29 3b |,dir,fna|me,ext);|
|00000c80| 0d 0a 09 69 66 28 21 65 | 78 74 5b 30 5d 29 20 73 |...if(!e|xt[0]) s|
|00000c90| 74 72 63 70 79 28 65 78 | 74 2c 22 2e 42 4d 50 22 |trcpy(ex|t,".BMP"|
|00000ca0| 29 3b 0d 0a 09 5f 6d 61 | 6b 65 70 61 74 68 28 70 |);..._ma|kepath(p|
|00000cb0| 61 74 68 2c 64 72 69 76 | 65 2c 64 69 72 2c 66 6e |ath,driv|e,dir,fn|
|00000cc0| 61 6d 65 2c 65 78 74 29 | 3b 0d 0a 09 66 3d 66 6f |ame,ext)|;...f=fo|
|00000cd0| 70 65 6e 28 70 61 74 68 | 2c 22 72 2b 62 22 29 3b |pen(path|,"r+b");|
|00000ce0| 0d 0a 09 69 66 28 66 29 | 0d 0a 09 7b 0d 0a 09 20 |...if(f)|...{... |
|00000cf0| 20 20 20 6e 3d 67 65 74 | 77 28 66 29 3b 0d 0a 09 | n=get|w(f);...|
|00000d00| 20 20 20 20 69 66 28 6e | 3d 3d 30 78 34 44 34 32 | if(n|==0x4D42|
|00000d10| 29 0d 0a 09 20 20 20 20 | 7b 0d 0a 09 09 66 73 65 |)... |{....fse|
|00000d20| 65 6b 28 66 2c 33 38 4c | 2c 53 45 45 4b 5f 53 45 |ek(f,38L|,SEEK_SE|
|00000d30| 54 29 3b 0d 0a 09 09 66 | 72 65 61 64 28 26 77 2c |T);....f|read(&w,|
|00000d40| 73 69 7a 65 6f 66 28 6c | 6f 6e 67 29 2c 31 2c 66 |sizeof(l|ong),1,f|
|00000d50| 29 3b 0d 0a 09 09 66 72 | 65 61 64 28 26 68 2c 73 |);....fr|ead(&h,s|
|00000d60| 69 7a 65 6f 66 28 6c 6f | 6e 67 29 2c 31 2c 66 29 |izeof(lo|ng),1,f)|
|00000d70| 3b 0d 0a 09 09 69 66 28 | 77 3d 3d 30 26 26 68 3d |;....if(|w==0&&h=|
|00000d80| 3d 30 29 0d 0a 09 09 7b | 0d 0a 09 09 20 20 20 20 |=0)....{|.... |
|00000d90| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00000da0| 52 65 73 6f 6c 75 74 69 | 6f 6e 20 77 61 73 20 61 |Resoluti|on was a|
|00000db0| 6c 72 65 61 64 79 20 72 | 65 6d 6f 76 65 64 20 66 |lready r|emoved f|
|00000dc0| 72 6f 6d 20 25 73 5c 6e | 22 2c 70 61 74 68 29 3b |rom %s\n|",path);|
|00000dd0| 0d 0a 09 09 7d 0d 0a 09 | 09 65 6c 73 65 20 69 66 |....}...|.else if|
|00000de0| 28 62 3c 61 72 67 63 7c | 7c 62 61 63 6b 75 70 28 |(b<argc|||backup(|
|00000df0| 66 2c 70 61 74 68 29 29 | 0d 0a 09 09 7b 0d 0a 09 |f,path))|....{...|
|00000e00| 09 20 20 20 20 66 73 65 | 65 6b 28 66 2c 33 38 4c |. fse|ek(f,38L|
|00000e10| 2c 53 45 45 4b 5f 53 45 | 54 29 3b 0d 0a 09 09 20 |,SEEK_SE|T);.... |
|00000e20| 20 20 20 7a 65 72 6f 3d | 30 3b 0d 0a 09 09 20 20 | zero=|0;.... |
|00000e30| 20 20 66 77 72 69 74 65 | 28 26 7a 65 72 6f 2c 73 | fwrite|(&zero,s|
|00000e40| 69 7a 65 6f 66 28 6c 6f | 6e 67 29 2c 31 2c 66 29 |izeof(lo|ng),1,f)|
|00000e50| 3b 0d 0a 09 09 20 20 20 | 20 66 77 72 69 74 65 28 |;.... | fwrite(|
|00000e60| 26 7a 65 72 6f 2c 73 69 | 7a 65 6f 66 28 6c 6f 6e |&zero,si|zeof(lon|
|00000e70| 67 29 2c 31 2c 66 29 3b | 0d 0a 09 09 20 20 20 20 |g),1,f);|.... |
|00000e80| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00000e90| 52 65 73 6f 6c 75 74 69 | 6f 6e 20 25 6c 75 78 25 |Resoluti|on %lux%|
|00000ea0| 6c 75 20 28 25 6c 64 78 | 25 6c 64 20 64 70 69 29 |lu (%ldx|%ld dpi)|
|00000eb0| 20 72 65 6d 6f 76 65 64 | 20 66 72 6f 6d 20 25 73 | removed| from %s|
|00000ec0| 5c 6e 22 2c 77 2c 68 2c | 28 77 2a 32 29 2f 37 39 |\n",w,h,|(w*2)/79|
|00000ed0| 2c 28 68 2a 32 29 2f 37 | 39 2c 70 61 74 68 29 3b |,(h*2)/7|9,path);|
|00000ee0| 0d 0a 09 09 7d 0d 0a 09 | 20 20 20 20 7d 0d 0a 09 |....}...| }...|
|00000ef0| 20 20 20 20 65 6c 73 65 | 20 69 66 28 6e 3d 3d 30 | else| if(n==0|
|00000f00| 78 35 30 36 43 7c 7c 6e | 3d 3d 30 78 37 30 36 43 |x506C||n|==0x706C|
|00000f10| 29 0d 0a 09 20 20 20 20 | 7b 0d 0a 09 09 6e 3d 67 |)... |{....n=g|
|00000f20| 65 74 77 28 66 29 3b 20 | 2f 2a 20 6e 75 6d 62 65 |etw(f); |/* numbe|
|00000f30| 72 20 6f 66 20 62 69 74 | 6d 61 70 73 20 2a 2f 0d |r of bit|maps */.|
|00000f40| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000f50| 20 62 62 3d 30 3b 0d 0a | 09 09 66 6f 72 28 6b 3d | bb=0;..|..for(k=|
|00000f60| 30 3b 6b 3c 6e 3b 6b 2b | 2b 29 0d 0a 09 09 7b 0d |0;k<n;k+|+)....{.|
|00000f70| 0a 09 09 20 20 20 20 66 | 73 65 65 6b 28 66 2c 34 |... f|seek(f,4|
|00000f80| 4c 2b 34 2a 6b 2c 53 45 | 45 4b 5f 53 45 54 29 3b |L+4*k,SE|EK_SET);|
|00000f90| 0d 0a 09 09 20 20 20 20 | 66 72 65 61 64 28 26 70 |.... |fread(&p|
|00000fa0| 6f 73 2c 73 69 7a 65 6f | 66 28 70 6f 73 29 2c 31 |os,sizeo|f(pos),1|
|00000fb0| 2c 66 29 3b 0d 0a 09 09 | 20 20 20 20 66 73 65 65 |,f);....| fsee|
|00000fc0| 6b 28 66 2c 70 6f 73 2c | 53 45 45 4b 5f 53 45 54 |k(f,pos,|SEEK_SET|
|00000fd0| 29 3b 0d 0a 09 09 20 20 | 20 20 73 77 69 74 63 68 |);.... | switch|
|00000fe0| 28 67 65 74 63 28 66 29 | 29 20 2f 2a 20 70 69 63 |(getc(f)|) /* pic|
|00000ff0| 74 75 72 65 20 74 79 70 | 65 20 2a 2f 0d 0a 09 09 |ture typ|e */....|
|00001000| 20 20 20 20 7b 0d 0a 09 | 09 20 20 20 20 63 61 73 | {...|. cas|
|00001010| 65 20 35 3a 20 2f 2a 20 | 44 44 42 20 2a 2f 0d 0a |e 5: /* |DDB */..|
|00001020| 09 09 20 20 20 20 63 61 | 73 65 20 36 3a 20 2f 2a |.. ca|se 6: /*|
|00001030| 20 44 49 42 20 2a 2f 0d | 0a 09 09 09 67 65 74 63 | DIB */.|....getc|
|00001040| 28 66 29 3b 20 2f 2a 20 | 70 61 63 6b 69 6e 67 20 |(f); /* |packing |
|00001050| 6d 65 74 68 6f 64 20 69 | 67 6e 6f 72 65 64 20 2a |method i|gnored *|
|00001060| 2f 0d 0a 09 09 09 77 3d | 67 65 74 77 28 66 29 3b |/.....w=|getw(f);|
|00001070| 0d 0a 09 09 09 69 66 28 | 77 26 31 29 20 77 7c 3d |.....if(|w&1) w|=|
|00001080| 28 6c 6f 6e 67 29 67 65 | 74 77 28 66 29 3c 3c 31 |(long)ge|tw(f)<<1|
|00001090| 36 3b 0d 0a 09 09 09 68 | 3d 67 65 74 77 28 66 29 |6;.....h|=getw(f)|
|000010a0| 3b 0d 0a 09 09 09 69 66 | 28 68 26 31 29 20 68 7c |;.....if|(h&1) h||
|000010b0| 3d 28 6c 6f 6e 67 29 67 | 65 74 77 28 66 29 3c 3c |=(long)g|etw(f)<<|
|000010c0| 31 36 3b 0d 0a 09 09 09 | 69 66 28 77 2f 32 3d 3d |16;.....|if(w/2==|
|000010d0| 30 26 26 68 2f 32 3d 3d | 30 29 0d 0a 09 09 09 7b |0&&h/2==|0).....{|
|000010e0| 0d 0a 09 09 09 20 20 20 | 20 66 70 72 69 6e 74 66 |..... | fprintf|
|000010f0| 28 73 74 64 65 72 72 2c | 22 52 65 73 6f 6c 75 74 |(stderr,|"Resolut|
|00001100| 69 6f 6e 20 77 61 73 20 | 61 6c 72 65 61 64 79 20 |ion was |already |
|00001110| 72 65 6d 6f 76 65 64 20 | 66 72 6f 6d 20 62 69 74 |removed |from bit|
|00001120| 6d 61 70 20 25 75 20 6f | 66 20 25 73 5c 6e 22 2c |map %u o|f %s\n",|
|00001130| 6b 2c 70 61 74 68 29 3b | 0d 0a 09 09 09 7d 0d 0a |k,path);|.....}..|
|00001140| 09 09 09 65 6c 73 65 20 | 69 66 28 62 3c 61 72 67 |...else |if(b<arg|
|00001150| 63 7c 7c 62 62 7c 7c 62 | 61 63 6b 75 70 28 66 2c |c||bb||b|ackup(f,|
|00001160| 70 61 74 68 29 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |path))..|...{....|
|00001170| 09 20 20 20 20 66 73 65 | 65 6b 28 66 2c 70 6f 73 |. fse|ek(f,pos|
|00001180| 2b 32 2c 53 45 45 4b 5f | 53 45 54 29 3b 0d 0a 09 |+2,SEEK_|SET);...|
|00001190| 09 09 20 20 20 20 7a 65 | 72 6f 3d 77 26 31 3b 0d |.. ze|ro=w&1;.|
|000011a0| 0a 09 09 09 20 20 20 20 | 66 77 72 69 74 65 28 26 |.... |fwrite(&|
|000011b0| 7a 65 72 6f 2c 28 77 26 | 31 29 2b 31 2c 32 2c 66 |zero,(w&|1)+1,2,f|
|000011c0| 29 3b 0d 0a 09 09 09 20 | 20 20 20 7a 65 72 6f 3d |);..... | zero=|
|000011d0| 68 26 31 3b 0d 0a 09 09 | 09 20 20 20 20 66 77 72 |h&1;....|. fwr|
|000011e0| 69 74 65 28 26 7a 65 72 | 6f 2c 28 68 26 31 29 2b |ite(&zer|o,(h&1)+|
|000011f0| 31 2c 32 2c 66 29 3b 0d | 0a 09 09 09 20 20 20 20 |1,2,f);.|.... |
|00001200| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00001210| 52 65 73 6f 6c 75 74 69 | 6f 6e 20 25 6c 75 78 25 |Resoluti|on %lux%|
|00001220| 6c 75 20 72 65 6d 6f 76 | 65 64 20 66 72 6f 6d 20 |lu remov|ed from |
|00001230| 62 69 74 6d 61 70 20 25 | 75 20 6f 66 20 25 73 5c |bitmap %|u of %s\|
|00001240| 6e 22 2c 77 2f 32 2c 68 | 2f 32 2c 6b 2c 70 61 74 |n",w/2,h|/2,k,pat|
|00001250| 68 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |h);.. | |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001270| 20 62 62 3d 31 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 | bb=1;..|...}....|
|00001280| 20 20 20 20 7d 0d 0a 09 | 09 7d 0d 0a 09 20 20 20 | }...|.}... |
|00001290| 20 7d 0d 0a 09 20 20 20 | 20 65 6c 73 65 0d 0a 09 | }... | else...|
|000012a0| 20 20 20 20 7b 0d 0a 09 | 09 66 70 72 69 6e 74 66 | {...|.fprintf|
|000012b0| 28 73 74 64 65 72 72 2c | 22 25 73 20 69 73 20 6e |(stderr,|"%s is n|
|000012c0| 6f 20 76 61 6c 69 64 20 | 57 69 6e 64 6f 77 73 20 |o valid |Windows |
|000012d0| 2e 42 4d 50 2c 20 2e 4d | 52 42 2c 20 6f 72 20 2e |.BMP, .M|RB, or .|
|000012e0| 53 48 47 20 66 69 6c 65 | 5c 6e 22 2c 70 61 74 68 |SHG file|\n",path|
|000012f0| 29 3b 0d 0a 09 20 20 20 | 20 7d 0d 0a 09 20 20 20 |);... | }... |
|00001300| 20 66 63 6c 6f 73 65 28 | 66 29 3b 0d 0a 09 7d 0d | fclose(|f);...}.|
|00001310| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 20 20 20 |..else..|.{... |
|00001320| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00001330| 22 43 61 6e 20 6e 6f 74 | 20 6f 70 65 6e 20 25 73 |"Can not| open %s|
|00001340| 5c 6e 22 2c 70 61 74 68 | 29 3b 0d 0a 09 7d 0d 0a |\n",path|);...}..|
|00001350| 20 20 20 20 7d 0d 0a 20 | 20 20 20 72 65 74 75 72 | }.. | retur|
|00001360| 6e 20 30 3b 0d 0a 7d 0d | 0a |n 0;..}.|. |
+--------+-------------------------+-------------------------+--------+--------+