home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-04-27 | 1.3 KB | [TEXT/LMAN] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
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, Sat Apr 27 15:02:44 2002, modified Sat Apr 27 15:02:44 2002, creator 'LMAN', type ASCII, 739 bytes "ptr_math.c" , at 0x363 286 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 | [LMAN] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 70 74 72 5f 6d 61 | 74 68 2e 63 00 00 00 00 |..ptr_ma|th.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 4c 4d 41 | 4e 00 00 ff ff ff ff 00 |.TEXTLMA|N.......|
|00000050| 00 00 00 00 00 02 e3 00 | 00 01 1e b8 f0 a6 54 b8 |........|......T.|
|00000060| f0 a6 54 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 c6 d7 00 00 |........|........|
|00000080| 2f 2a 20 44 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |/* Demon|strates |
|00000090| 75 73 69 6e 67 20 70 6f | 69 6e 74 65 72 20 61 72 |using po|inter ar|
|000000a0| 69 74 68 6d 65 74 69 63 | 20 74 6f 20 61 63 63 65 |ithmetic| to acce|
|000000b0| 73 73 20 2a 2f 0d 0a 2f | 2a 20 61 72 72 61 79 20 |ss */../|* array |
|000000c0| 65 6c 65 6d 65 6e 74 73 | 20 77 69 74 68 20 70 6f |elements| with po|
|000000d0| 69 6e 74 65 72 20 6e 6f | 74 61 74 69 6f 6e 2e 20 |inter no|tation. |
|000000e0| 2a 2f 0d 0a 0d 0a 23 69 | 6e 63 6c 75 64 65 20 3c |*/....#i|nclude <|
|000000f0| 73 74 64 69 6f 2e 68 3e | 0d 0a 23 64 65 66 69 6e |stdio.h>|..#defin|
|00000100| 65 20 4d 41 58 20 31 30 | 0d 0a 0d 0a 2f 2a 20 44 |e MAX 10|..../* D|
|00000110| 65 63 6c 61 72 65 20 61 | 6e 64 20 69 6e 69 74 69 |eclare a|nd initi|
|00000120| 61 6c 69 7a 65 20 61 6e | 20 69 6e 74 65 67 65 72 |alize an| integer|
|00000130| 20 61 72 72 61 79 2e 20 | 2a 2f 0d 0a 0d 0a 69 6e | array. |*/....in|
|00000140| 74 20 69 5f 61 72 72 61 | 79 5b 4d 41 58 5d 20 3d |t i_arra|y[MAX] =|
|00000150| 20 7b 20 30 2c 31 2c 32 | 2c 33 2c 34 2c 35 2c 36 | { 0,1,2|,3,4,5,6|
|00000160| 2c 37 2c 38 2c 39 20 7d | 3b 0d 0a 0d 0a 2f 2a 20 |,7,8,9 }|;..../* |
|00000170| 44 65 63 6c 61 72 65 20 | 61 20 70 6f 69 6e 74 65 |Declare |a pointe|
|00000180| 72 20 74 6f 20 69 6e 74 | 20 61 6e 64 20 61 6e 20 |r to int| and an |
|00000190| 69 6e 74 20 76 61 72 69 | 61 62 6c 65 2e 20 2a 2f |int vari|able. */|
|000001a0| 0d 0a 0d 0a 69 6e 74 20 | 2a 69 5f 70 74 72 2c 20 |....int |*i_ptr, |
|000001b0| 63 6f 75 6e 74 3b 0d 0a | 0d 0a 2f 2a 20 44 65 63 |count;..|../* Dec|
|000001c0| 6c 61 72 65 20 61 6e 64 | 20 69 6e 69 74 69 61 6c |lare and| initial|
|000001d0| 69 7a 65 20 61 20 66 6c | 6f 61 74 20 61 72 72 61 |ize a fl|oat arra|
|000001e0| 79 2e 20 2a 2f 0d 0a 0d | 0a 66 6c 6f 61 74 20 66 |y. */...|.float f|
|000001f0| 5f 61 72 72 61 79 5b 4d | 41 58 5d 20 3d 20 7b 20 |_array[M|AX] = { |
|00000200| 2e 30 2c 20 2e 31 2c 20 | 2e 32 2c 20 2e 33 2c 20 |.0, .1, |.2, .3, |
|00000210| 2e 34 2c 20 2e 35 2c 20 | 2e 36 2c 20 2e 37 2c 20 |.4, .5, |.6, .7, |
|00000220| 2e 38 2c 20 2e 39 20 7d | 3b 0d 0a 0d 0a 2f 2a 20 |.8, .9 }|;..../* |
|00000230| 44 65 63 6c 61 72 65 20 | 61 20 70 6f 69 6e 74 65 |Declare |a pointe|
|00000240| 72 20 74 6f 20 66 6c 6f | 61 74 2e 20 2a 2f 0d 0a |r to flo|at. */..|
|00000250| 0d 0a 66 6c 6f 61 74 20 | 2a 66 5f 70 74 72 3b 0d |..float |*f_ptr;.|
|00000260| 0a 0d 0a 69 6e 74 20 6d | 61 69 6e 28 20 76 6f 69 |...int m|ain( voi|
|00000270| 64 20 29 0d 0a 7b 0d 0a | 20 20 20 20 2f 2a 20 49 |d )..{..| /* I|
|00000280| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 70 6f |nitializ|e the po|
|00000290| 69 6e 74 65 72 73 2e 20 | 2a 2f 0d 0a 0d 0a 20 20 |inters. |*/.... |
|000002a0| 20 20 69 5f 70 74 72 20 | 3d 20 69 5f 61 72 72 61 | i_ptr |= i_arra|
|000002b0| 79 3b 0d 0a 20 20 20 20 | 66 5f 70 74 72 20 3d 20 |y;.. |f_ptr = |
|000002c0| 66 5f 61 72 72 61 79 3b | 0d 0a 0d 0a 20 20 20 20 |f_array;|.... |
|000002d0| 2f 2a 20 50 72 69 6e 74 | 20 74 68 65 20 61 72 72 |/* Print| the arr|
|000002e0| 61 79 20 65 6c 65 6d 65 | 6e 74 73 2e 20 2a 2f 0d |ay eleme|nts. */.|
|000002f0| 0a 0d 0a 20 20 20 20 66 | 6f 72 20 28 63 6f 75 6e |... f|or (coun|
|00000300| 74 20 3d 20 30 3b 20 63 | 6f 75 6e 74 20 3c 20 4d |t = 0; c|ount < M|
|00000310| 41 58 3b 20 63 6f 75 6e | 74 2b 2b 29 0d 0a 20 20 |AX; coun|t++).. |
|00000320| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 25 64 | pr|intf("%d|
|00000330| 5c 74 25 66 5c 6e 22 2c | 20 2a 69 5f 70 74 72 2b |\t%f\n",| *i_ptr+|
|00000340| 2b 2c 20 2a 66 5f 70 74 | 72 2b 2b 29 3b 0d 0a 0d |+, *f_pt|r++);...|
|00000350| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 30 3b 0d 0a |. ret|urn 0;..|
|00000360| 7d 0d 0a 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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000390| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|000003a0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|000003b0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+