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

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: g_bod.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext 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:00:47 1988, modified Sun Nov 13 14:49:23 1988, creator Think C, type ASCII, 662 bytes "g_bod.c" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% 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 07 67 5f 62 6f 64 2e | 63 00 00 00 00 00 00 00 |..g_bod.|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 02 96 00 | 00 00 00 9f a3 0d cf 9f |........|........|
|00000060| a3 97 c3 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| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00000090| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 6d 61 74 |h>.#incl|ude <mat|
|000000a0| 68 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 22 65 |h.h>.#in|clude "e|
|000000b0| 78 74 65 72 6e 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |xtern.h"|.#includ|
|000000c0| 65 20 22 6d 61 63 72 6f | 73 2e 68 22 0d 0d 0d 67 |e "macro|s.h"...g|
|000000d0| 5f 62 6f 64 20 28 66 29 | 0d 46 49 4c 45 20 2a 20 |_bod (f)|.FILE * |
|000000e0| 66 3b 0d 7b 0d 20 20 20 | 20 69 6e 74 20 20 20 20 |f;.{. | int |
|000000f0| 20 6b 2c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | k,. | |
|00000100| 78 3b 0d 20 20 20 20 64 | 6f 75 62 6c 65 20 20 62 |x;. d|ouble b|
|00000110| 69 67 20 3d 20 30 2e 30 | 2c 0d 20 20 20 20 20 20 |ig = 0.0|,. |
|00000120| 20 20 20 20 20 20 6c 69 | 74 74 6c 65 20 3d 20 48 | li|ttle = H|
|00000130| 55 47 45 3b 0d 20 20 20 | 20 63 68 61 72 20 20 20 |UGE;. | char |
|00000140| 20 62 75 66 5b 35 31 33 | 5d 3b 0d 0d 0d 20 20 20 | buf[513|];... |
|00000150| 20 66 6f 72 20 28 79 73 | 75 65 20 3d 20 30 3b 79 | for (ys|ue = 0;y|
|00000160| 73 75 65 20 3c 20 33 30 | 30 20 3b 20 79 73 75 65 |sue < 30|0 ; ysue|
|00000170| 2b 2b 29 20 7b 0d 09 69 | 66 20 28 66 67 65 74 73 |++) {..i|f (fgets|
|00000180| 20 28 62 75 66 2c 20 35 | 31 33 2c 20 66 29 20 3d | (buf, 5|13, f) =|
|00000190| 3d 20 4e 55 4c 4c 29 0d | 09 20 20 20 20 62 72 65 |= NULL).|. bre|
|000001a0| 61 6b 3b 0d 09 20 20 20 | 20 0d 09 78 73 75 65 20 |ak;.. | ..xsue |
|000001b0| 3d 20 73 74 72 6c 65 6e | 20 28 62 75 66 29 20 2d |= strlen| (buf) -|
|000001c0| 20 31 3b 0d 09 69 66 20 | 28 78 73 75 65 20 3e 3d | 1;..if |(xsue >=|
|000001d0| 20 33 30 30 29 20 78 73 | 75 65 20 3d 20 33 30 30 | 300) xs|ue = 300|
|000001e0| 20 2d 20 31 3b 0d 09 43 | 61 6c 6c 53 74 64 45 76 | - 1;..C|allStdEv|
|000001f0| 65 6e 74 28 29 3b 0d 09 | 66 6f 72 20 28 78 20 3d |ent();..|for (x =|
|00000200| 20 30 3b 20 78 20 3c 20 | 78 73 75 65 3b 20 78 2b | 0; x < |xsue; x+|
|00000210| 2b 29 20 7b 0d 09 20 20 | 20 20 6b 20 3d 20 62 75 |+) {.. | k = bu|
|00000220| 66 5b 78 5d 3b 0d 09 20 | 20 20 20 73 75 7a 69 65 |f[x];.. | suzie|
|00000230| 5b 78 5d 5b 79 73 75 65 | 5d 20 3d 20 28 64 6f 75 |[x][ysue|] = (dou|
|00000240| 62 6c 65 29 20 6b 3b 0d | 09 20 20 20 20 69 66 20 |ble) k;.|. if |
|00000250| 28 62 69 67 20 3c 20 6b | 29 0d 09 09 62 69 67 20 |(big < k|)...big |
|00000260| 3d 20 6b 3b 0d 09 20 20 | 20 20 69 66 20 28 6c 69 |= k;.. | if (li|
|00000270| 74 74 6c 65 20 3e 20 6b | 29 0d 09 09 6c 69 74 74 |ttle > k|)...litt|
|00000280| 6c 65 20 3d 20 6b 3b 0d | 09 7d 0d 20 20 20 20 7d |le = k;.|.}. }|
|00000290| 0d 20 20 20 20 62 69 67 | 20 3d 20 62 69 67 20 2d |. big| = big -|
|000002a0| 20 6c 69 74 74 6c 65 3b | 0d 20 20 20 20 66 6f 72 | little;|. for|
|000002b0| 20 28 6b 20 3d 20 30 3b | 20 6b 20 3c 20 79 73 75 | (k = 0;| k < ysu|
|000002c0| 65 3b 20 6b 2b 2b 29 0d | 09 66 6f 72 20 28 78 20 |e; k++).|.for (x |
|000002d0| 3d 20 30 3b 20 78 20 3c | 20 78 73 75 65 3b 20 78 |= 0; x <| xsue; x|
|000002e0| 2b 2b 29 0d 09 20 20 20 | 20 73 75 7a 69 65 5b 78 |++).. | suzie[x|
|000002f0| 5d 5b 6b 5d 20 3d 20 28 | 73 75 7a 69 65 5b 78 5d |][k] = (|suzie[x]|
|00000300| 5b 6b 5d 20 2d 20 6c 69 | 74 74 6c 65 29 20 2f 20 |[k] - li|ttle) / |
|00000310| 62 69 67 3b 0d 7d 00 00 | 00 00 00 00 00 00 00 00 |big;.}..|........|
|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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+