/ Sams Teach Yourself C in 21 Days (6th Edition)
/ STYC216E.ISO / mac / Examples / Day04 / List0404.c ![]() | < prev | next > |
MacBinary | 2002-04-13 | 1.1 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, Sat Apr 13 23:53:56 2002, modified Sat Apr 13 23:53:56 2002, creator 'LMAN', type ASCII, 565 bytes "List0404.c" , at 0x2b5 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 0a 4c 69 73 74 30 34 | 30 34 2e 63 00 00 00 00 |..List04|04.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 35 00 | 00 01 1e b8 de ad d4 b8 |......5.|........|
|00000060| de ad d4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f4 fa 00 00 |........|........|
|00000080| 2f 2a 20 44 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |/* Demon|strates |
|00000090| 74 68 65 20 75 73 65 20 | 6f 66 20 69 66 20 73 74 |the use |of if st|
|000000a0| 61 74 65 6d 65 6e 74 20 | 77 69 74 68 20 65 6c 73 |atement |with els|
|000000b0| 65 20 63 6c 61 75 73 65 | 20 2a 2f 0d 0a 0d 0a 23 |e clause| */....#|
|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 78 2c 20 79 3b 0d 0a |>....int| x, y;..|
|000000e0| 0d 0a 69 6e 74 20 6d 61 | 69 6e 28 20 76 6f 69 64 |..int ma|in( void|
|000000f0| 20 29 0d 0a 7b 0d 0a 20 | 20 20 20 2f 2a 20 49 6e | )..{.. | /* In|
|00000100| 70 75 74 20 74 68 65 20 | 74 77 6f 20 76 61 6c 75 |put the |two valu|
|00000110| 65 73 20 74 6f 20 62 65 | 20 74 65 73 74 65 64 20 |es to be| tested |
|00000120| 2a 2f 0d 0a 0d 0a 20 20 | 20 20 70 72 69 6e 74 66 |*/.... | printf|
|00000130| 28 22 5c 6e 49 6e 70 75 | 74 20 61 6e 20 69 6e 74 |("\nInpu|t an int|
|00000140| 65 67 65 72 20 76 61 6c | 75 65 20 66 6f 72 20 78 |eger val|ue for x|
|00000150| 3a 20 22 29 3b 0d 0a 20 | 20 20 20 73 63 61 6e 66 |: ");.. | scanf|
|00000160| 28 22 25 64 22 2c 20 26 | 78 29 3b 0d 0a 20 20 20 |("%d", &|x);.. |
|00000170| 20 70 72 69 6e 74 66 28 | 22 5c 6e 49 6e 70 75 74 | printf(|"\nInput|
|00000180| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 76 61 6c 75 | an inte|ger valu|
|00000190| 65 20 66 6f 72 20 79 3a | 20 22 29 3b 0d 0a 20 20 |e for y:| ");.. |
|000001a0| 20 20 73 63 61 6e 66 28 | 22 25 64 22 2c 20 26 79 | scanf(|"%d", &y|
|000001b0| 29 3b 0d 0a 0d 0a 20 20 | 20 20 2f 2a 20 54 65 73 |);.... | /* Tes|
|000001c0| 74 20 76 61 6c 75 65 73 | 20 61 6e 64 20 70 72 69 |t values| and pri|
|000001d0| 6e 74 20 72 65 73 75 6c | 74 20 2a 2f 0d 0a 0d 0a |nt resul|t */....|
|000001e0| 20 20 20 20 69 66 20 28 | 78 20 3d 3d 20 79 29 0d | if (|x == y).|
|000001f0| 0a 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 66 28 |. | printf(|
|00000200| 22 78 20 69 73 20 65 71 | 75 61 6c 20 74 6f 20 79 |"x is eq|ual to y|
|00000210| 5c 6e 22 29 3b 0d 0a 20 | 20 20 20 65 6c 73 65 0d |\n");.. | else.|
|00000220| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 78 20 3e |. | if (x >|
|00000230| 20 79 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | y).. | |
|00000240| 20 70 72 69 6e 74 66 28 | 22 78 20 69 73 20 67 72 | printf(|"x is gr|
|00000250| 65 61 74 65 72 20 74 68 | 61 6e 20 79 5c 6e 22 29 |eater th|an y\n")|
|00000260| 3b 0d 0a 20 20 20 20 20 | 20 20 20 65 6c 73 65 0d |;.. | else.|
|00000270| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 69 |. | pri|
|00000280| 6e 74 66 28 22 78 20 69 | 73 20 73 6d 61 6c 6c 65 |ntf("x i|s smalle|
|00000290| 72 20 74 68 61 6e 20 79 | 5c 6e 22 29 3b 0d 0a 0d |r than y|\n");...|
|000002a0| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 30 3b 0d 0a |. ret|urn 0;..|
|000002b0| 7d 0d 0a 0d 0a 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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000310| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000320| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000330| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|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 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+