/ Sams Teach Yourself C in 21 Days (6th Edition)
/ STYC216E.ISO / mac / Examples / Day11 / simple.c ![]() | < prev | next > |
MacBinary | 2002-05-02 | 1.0 KB | [TEXT/LMAN] |
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, Thu May 2 11:44:42 2002, modified Thu May 2 11:44:42 2002, creator 'LMAN', type ASCII, 385 bytes "simple.c" , at 0x201 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] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 73 69 6d 70 6c 65 | 2e 63 00 00 00 00 00 00 |..simple|.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 01 81 00 | 00 01 1e b8 f7 0f 6a b8 |........|......j.|
|00000060| f7 0f 6a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..j.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bd 5e 00 00 |........|.....^..|
|00000080| 2f 2a 20 73 69 6d 70 6c | 65 2e 63 20 2d 20 44 65 |/* simpl|e.c - De|
|00000090| 6d 6f 6e 73 74 72 61 74 | 65 73 20 74 68 65 20 75 |monstrat|es the u|
|000000a0| 73 65 20 6f 66 20 61 20 | 73 69 6d 70 6c 65 20 73 |se of a |simple s|
|000000b0| 74 72 75 63 74 75 72 65 | 73 2a 2f 0d 0a 0d 0a 23 |tructure|s*/....#|
|000000c0| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|000000d0| 3e 0d 0a 0d 0a 69 6e 74 | 20 6c 65 6e 67 74 68 2c |>....int| length,|
|000000e0| 20 77 69 64 74 68 3b 0d | 0a 6c 6f 6e 67 20 61 72 | width;.|.long ar|
|000000f0| 65 61 3b 0d 0a 0d 0a 73 | 74 72 75 63 74 20 63 6f |ea;....s|truct co|
|00000100| 6f 72 64 7b 0d 0a 20 20 | 20 20 69 6e 74 20 78 3b |ord{.. | int x;|
|00000110| 0d 0a 20 20 20 20 69 6e | 74 20 79 3b 0d 0a 7d 20 |.. in|t y;..} |
|00000120| 6d 79 50 6f 69 6e 74 3b | 0d 0a 0d 0a 69 6e 74 20 |myPoint;|....int |
|00000130| 6d 61 69 6e 28 20 76 6f | 69 64 20 29 0d 0a 7b 0d |main( vo|id )..{.|
|00000140| 0a 20 20 20 20 2f 2a 20 | 73 65 74 20 76 61 6c 75 |. /* |set valu|
|00000150| 65 73 20 69 6e 74 6f 20 | 74 68 65 20 63 6f 6f 72 |es into |the coor|
|00000160| 64 69 6e 61 74 65 73 20 | 2a 2f 0d 0a 20 20 20 20 |dinates |*/.. |
|00000170| 6d 79 50 6f 69 6e 74 2e | 78 20 3d 20 31 32 3b 0d |myPoint.|x = 12;.|
|00000180| 0a 20 20 20 20 6d 79 50 | 6f 69 6e 74 2e 79 20 3d |. myP|oint.y =|
|00000190| 20 31 34 3b 0d 0a 0d 0a | 20 20 20 20 70 72 69 6e | 14;....| prin|
|000001a0| 74 66 28 22 5c 6e 54 68 | 65 20 63 6f 6f 72 64 69 |tf("\nTh|e coordi|
|000001b0| 6e 61 74 65 73 20 61 72 | 65 3a 20 28 25 64 2c 20 |nates ar|e: (%d, |
|000001c0| 25 64 29 2e 22 2c 0d 0a | 20 20 20 20 20 20 20 20 |%d).",..| |
|000001d0| 20 20 20 6d 79 50 6f 69 | 6e 74 2e 78 2c 20 6d 79 | myPoi|nt.x, my|
|000001e0| 50 6f 69 6e 74 2e 79 29 | 3b 0d 0a 0d 0a 20 20 20 |Point.y)|;.... |
|000001f0| 20 72 65 74 75 72 6e 20 | 30 3b 0d 0a 7d 0d 0a 0d | return |0;..}...|
|00000200| 0a 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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000290| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|000002a0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|000002b0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+