home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / util / raytracr.sit / conv.c.bin < prev    next >
MacBinary  |  1989-09-14  |  1.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Sun Nov 13 05:02:29 1988, modified Sun Nov 13 05:11:27 1988, creator Think C, type ASCII, 791 bytes "conv.c" default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
17% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 63 6f 6e 76 2e 63 | 00 00 00 00 00 00 00 00 |..conv.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 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 17 00 | 00 00 00 9f a3 0e 35 9f |........|......5.|
|00000060| a3 10 4f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..O.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00000090| 68 3e 0d 20 20 0d 65 78 | 74 65 72 6e 20 65 72 72 |h>. .ex|tern err|
|000000a0| 6e 6f 3b 0d 0d 5f 6d 61 | 69 6e 28 61 72 67 63 2c |no;.._ma|in(argc,|
|000000b0| 20 61 72 67 76 29 0d 69 | 6e 74 20 61 72 67 63 3b | argv).i|nt argc;|
|000000c0| 0d 63 68 61 72 20 2a 61 | 72 67 76 5b 5d 3b 0d 0d |.char *a|rgv[];..|
|000000d0| 7b 0d 20 20 63 68 61 72 | 20 2a 6d 6c 61 6c 6c 6f |{. char| *mlallo|
|000000e0| 63 28 29 3b 0d 20 20 63 | 68 61 72 20 2a 63 64 2c |c();. c|har *cd,|
|000000f0| 2a 64 3b 0d 20 20 73 68 | 6f 72 74 20 2a 62 6d 2c |*d;. sh|ort *bm,|
|00000100| 2a 63 3b 0d 20 20 69 6e | 74 20 66 64 2c 20 63 6f |*c;. in|t fd, co|
|00000110| 6e 74 3b 0d 20 72 65 67 | 69 73 74 65 72 20 69 6e |nt;. reg|ister in|
|00000120| 74 20 61 2c 62 3b 0d 0d | 09 63 6f 6e 74 20 3d 20 |t a,b;..|.cont = |
|00000130| 36 30 3b 20 0d 2f 2a 09 | 69 66 28 28 61 72 67 63 |60; ./*.|if((argc|
|00000140| 20 3d 3d 20 32 29 20 26 | 26 20 28 61 74 6f 69 28 | == 2) &|& (atoi(|
|00000150| 61 72 67 76 5b 31 5d 29 | 20 3e 31 29 20 26 26 20 |argv[1])| >1) && |
|00000160| 28 61 74 6f 69 28 61 72 | 67 76 5b 31 5d 29 20 3c |(atoi(ar|gv[1]) <|
|00000170| 31 30 30 29 29 0d 09 09 | 63 6f 6e 74 20 3d 20 61 |100))...|cont = a|
|00000180| 74 6f 69 28 61 72 67 76 | 5b 31 5d 29 3b 2a 2f 0d |toi(argv|[1]);*/.|
|00000190| 20 0d 20 20 20 20 69 66 | 20 28 28 66 64 3d 6f 70 | . if| ((fd=op|
|000001a0| 65 6e 28 61 72 67 76 5b | 31 5d 2c 4f 5f 52 44 4f |en(argv[|1],O_RDO|
|000001b0| 4e 4c 59 7c 4f 5f 4e 44 | 45 4c 41 59 29 29 3d 3d |NLY|O_ND|ELAY))==|
|000001c0| 30 29 20 7b 0d 20 20 20 | 20 20 20 66 70 72 69 6e |0) {. | fprin|
|000001d0| 74 66 28 22 63 6f 75 6c | 64 6e 27 74 20 6f 70 65 |tf("coul|dn't ope|
|000001e0| 6e 20 25 73 20 66 6f 72 | 20 72 65 61 64 5c 6e 22 |n %s for| read\n"|
|000001f0| 2c 20 61 72 67 76 5b 31 | 5d 29 3b 0d 20 20 20 20 |, argv[1|]);. |
|00000200| 20 20 65 78 69 74 28 2d | 31 29 3b 0d 20 20 20 20 | exit(-|1);. |
|00000210| 7d 0d 20 20 20 20 69 66 | 28 6c 73 65 65 6b 28 66 |}. if|(lseek(f|
|00000220| 64 2c 38 2c 30 29 3c 30 | 29 0d 20 20 20 20 20 20 |d,8,0)<0|). |
|00000230| 65 78 69 74 28 2d 31 29 | 3b 0d 20 20 20 20 63 64 |exit(-1)|;. cd|
|00000240| 3d 6d 6c 61 6c 6c 6f 63 | 28 31 33 34 34 30 30 29 |=mlalloc|(134400)|
|00000250| 3b 0d 20 20 20 20 69 66 | 28 72 65 61 64 28 66 64 |;. if|(read(fd|
|00000260| 2c 63 64 2c 31 33 34 34 | 30 30 29 21 3d 31 33 34 |,cd,1344|00)!=134|
|00000270| 34 30 30 29 0d 20 20 20 | 20 20 20 65 78 69 74 28 |400). | exit(|
|00000280| 2d 31 29 3b 0d 20 20 20 | 20 62 6d 3d 6d 6c 61 6c |-1);. | bm=mlal|
|00000290| 6c 6f 63 28 31 34 39 37 | 34 29 3b 0d 20 20 20 20 |loc(1497|4);. |
|000002a0| 63 3d 62 6d 2b 37 34 38 | 37 3b 0d 20 20 20 20 66 |c=bm+748|7;. f|
|000002b0| 6f 72 28 61 3d 32 38 37 | 3b 61 3e 3d 30 3b 61 2d |or(a=287|;a>=0;a-|
|000002c0| 2d 29 20 7b 0d 20 20 20 | 20 20 20 64 3d 61 2a 34 |-) {. | d=a*4|
|000002d0| 32 30 2b 63 64 3b 0d 20 | 20 20 20 20 20 66 6f 72 |20+cd;. | for|
|000002e0| 28 62 3d 34 31 35 3b 62 | 3e 3d 30 3b 62 2d 2d 29 |(b=415;b|>=0;b--)|
|000002f0| 20 7b 0d 20 20 20 20 20 | 20 20 20 69 66 28 21 28 | {. | if(!(|
|00000300| 62 26 31 35 29 29 0d 20 | 20 20 20 20 20 20 20 20 |b&15)). | |
|00000310| 20 63 2d 3d 31 3b 0d 20 | 20 20 20 20 20 20 20 2a | c-=1;. | *|
|00000320| 63 3d 28 2a 63 3c 3c 31 | 29 7c 28 2a 28 64 2b 62 |c=(*c<<1|)|(*(d+b|
|00000330| 29 3e 36 30 29 3b 0d 20 | 20 20 20 20 20 7d 0d 20 |)>60);. | }. |
|00000340| 20 20 20 7d 0d 20 20 20 | 20 63 64 3d 62 6d 3b 0d | }. | cd=bm;.|
|00000350| 20 20 20 20 61 20 3d 20 | 30 3b 0d 20 20 20 20 77 | a = |0;. w|
|00000360| 68 69 6c 65 28 61 2b 2b | 20 21 3d 20 31 34 39 37 |hile(a++| != 1497|
|00000370| 34 29 0d 09 20 20 20 20 | 66 70 72 69 6e 74 66 28 |4).. |fprintf(|
|00000380| 73 74 64 6f 75 74 2c 20 | 22 25 63 22 2c 20 2a 63 |stdout, |"%c", *c|
|00000390| 64 2b 2b 29 3b 0d 7d 00 | 00 00 00 00 00 00 00 00 |d++);.}.|........|
|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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+