/ Sams Teach Yourself C in 21 Days (6th Edition)
/ STYC216E.ISO / mac / Examples / Day13 / fallthru.c ![]() | < prev | next > |
MacBinary | 2002-05-04 | 1.5 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 May 4 15:06:40 2002, modified Sat May 4 15:06:40 2002, creator 'LMAN', type ASCII, 933 bytes "fallthru.c" , at 0x425 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 66 61 6c 6c 74 68 | 72 75 2e 63 00 00 00 00 |..fallth|ru.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 03 a5 00 | 00 01 1e b8 f9 e1 c0 b8 |........|........|
|00000060| f9 e1 c0 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 cd 99 00 00 |........|........|
|00000080| 2f 2a 20 41 6e 6f 74 68 | 65 72 20 75 73 65 20 6f |/* Anoth|er use o|
|00000090| 66 20 74 68 65 20 73 77 | 69 74 63 68 20 73 74 61 |f the sw|itch sta|
|000000a0| 74 65 6d 65 6e 74 2e 20 | 2a 2f 0d 0a 0d 0a 23 69 |tement. |*/....#i|
|000000b0| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|000000c0| 0d 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c |..#inclu|de <stdl|
|000000d0| 69 62 2e 68 3e 0d 0a 0d | 0a 69 6e 74 20 6d 61 69 |ib.h>...|.int mai|
|000000e0| 6e 28 20 76 6f 69 64 20 | 29 0d 0a 7b 0d 0a 20 20 |n( void |)..{.. |
|000000f0| 20 69 6e 74 20 72 65 70 | 6c 79 3b 0d 0a 0d 0a 20 | int rep|ly;.... |
|00000100| 20 20 20 77 68 69 6c 65 | 20 28 31 29 0d 0a 20 20 | while| (1).. |
|00000110| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 70 75 74 | {.. | put|
|00000120| 73 28 22 5c 6e 45 6e 74 | 65 72 20 61 20 76 61 6c |s("\nEnt|er a val|
|00000130| 75 65 20 62 65 74 77 65 | 65 6e 20 31 20 61 6e 64 |ue betwe|en 1 and|
|00000140| 20 31 30 2c 20 30 20 74 | 6f 20 65 78 69 74 3a 20 | 10, 0 t|o exit: |
|00000150| 22 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 73 63 61 |");.. | sca|
|00000160| 6e 66 28 22 25 64 22 2c | 20 26 72 65 70 6c 79 29 |nf("%d",| &reply)|
|00000170| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 73 77 69 |;.... | swi|
|00000180| 74 63 68 20 28 72 65 70 | 6c 79 29 0d 0a 20 20 20 |tch (rep|ly).. |
|00000190| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|000001a0| 20 20 20 20 63 61 73 65 | 20 30 3a 0d 0a 20 20 20 | case| 0:.. |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 78 69 | | exi|
|000001c0| 74 28 30 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |t(0);.. | |
|000001d0| 20 20 20 63 61 73 65 20 | 31 3a 0d 0a 20 20 20 20 | case |1:.. |
|000001e0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 32 3a 0d | |case 2:.|
|000001f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 |. | cas|
|00000200| 65 20 33 3a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |e 3:.. | |
|00000210| 20 20 63 61 73 65 20 34 | 3a 0d 0a 20 20 20 20 20 | case 4|:.. |
|00000220| 20 20 20 20 20 20 20 63 | 61 73 65 20 35 3a 0d 0a | c|ase 5:..|
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000240| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{.. | |
|00000250| 20 20 20 20 20 70 75 74 | 73 28 22 59 6f 75 20 65 | put|s("You e|
|00000260| 6e 74 65 72 65 64 20 35 | 20 6f 72 20 62 65 6c 6f |ntered 5| or belo|
|00000270| 77 2e 5c 6e 22 29 3b 0d | 0a 20 20 20 20 20 20 20 |w.\n");.|. |
|00000280| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|00000290| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|000002a0| 20 20 20 7d 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | }.. | |
|000002b0| 20 20 63 61 73 65 20 36 | 3a 0d 0a 20 20 20 20 20 | case 6|:.. |
|000002c0| 20 20 20 20 20 20 20 63 | 61 73 65 20 37 3a 0d 0a | c|ase 7:..|
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|000002e0| 20 38 3a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 8:.. | |
|000002f0| 20 63 61 73 65 20 39 3a | 0d 0a 20 20 20 20 20 20 | case 9:|.. |
|00000300| 20 20 20 20 20 20 63 61 | 73 65 20 31 30 3a 0d 0a | ca|se 10:..|
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000320| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{.. | |
|00000330| 20 20 20 20 20 70 75 74 | 73 28 22 59 6f 75 20 65 | put|s("You e|
|00000340| 6e 74 65 72 65 64 20 36 | 20 6f 72 20 68 69 67 68 |ntered 6| or high|
|00000350| 65 72 2e 5c 6e 22 29 3b | 0d 0a 20 20 20 20 20 20 |er.\n");|.. |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea|
|00000370| 6b 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |k;.. | |
|00000380| 20 20 20 20 7d 0d 0a 20 | 20 20 20 20 20 20 20 20 | }.. | |
|00000390| 20 20 20 64 65 66 61 75 | 6c 74 3a 0d 0a 20 20 20 | defau|lt:.. |
|000003a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000003b0| 75 74 73 28 22 42 65 74 | 77 65 65 6e 20 31 20 61 |uts("Bet|ween 1 a|
|000003c0| 6e 64 20 31 30 2c 20 70 | 6c 65 61 73 65 21 5c 6e |nd 10, p|lease!\n|
|000003d0| 22 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 20 2f |");.. | } /|
|000003e0| 2a 20 65 6e 64 20 6f 66 | 20 73 77 69 74 63 68 20 |* end of| switch |
|000003f0| 2a 2f 0d 0a 20 20 20 20 | 7d 20 20 20 20 20 2f 2a |*/.. |} /*|
|00000400| 65 6e 64 20 6f 66 20 77 | 68 69 6c 65 20 2a 2f 0d |end of w|hile */.|
|00000410| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 30 3b 0d 0a |. ret|urn 0;..|
|00000420| 7d 0d 0a 0d 0a 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| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|000004a0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|000004b0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|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 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+