home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day13 / cont.c < prev    next >
MacBinary  |  2002-05-04  |  1.4 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).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat May 4 12:20:10 2002, modified Sat May 4 12:20:10 2002, creator 'LMAN', type ASCII, 828 bytes "cont.c" , at 0x3bc 286 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[LMAN]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 63 6f 6e 74 2e 63 | 00 00 00 00 00 00 00 00 |..cont.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 3c 00 | 00 01 1e b8 f9 ba ba b8 |......<.|........|
|00000060| f9 ba ba 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 4c ed 00 00 |........|....L...|
|00000080| 2f 2a 20 44 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |/* Demon|strates |
|00000090| 74 68 65 20 63 6f 6e 74 | 69 6e 75 65 20 73 74 61 |the cont|inue 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 0d 0a 69 6e 74 20 | 6d 61 69 6e 28 20 76 6f |....int |main( vo|
|000000d0| 69 64 20 29 0d 0a 7b 0d | 0a 20 20 20 20 2f 2a 20 |id )..{.|. /* |
|000000e0| 44 65 63 6c 61 72 65 20 | 61 20 62 75 66 66 65 72 |Declare |a buffer|
|000000f0| 20 66 6f 72 20 69 6e 70 | 75 74 20 61 6e 64 20 61 | for inp|ut and a|
|00000100| 20 63 6f 75 6e 74 65 72 | 20 76 61 72 69 61 62 6c | counter| variabl|
|00000110| 65 2e 20 2a 2f 0d 0a 0d | 0a 20 20 20 20 63 68 61 |e. */...|. cha|
|00000120| 72 20 62 75 66 66 65 72 | 5b 38 31 5d 3b 0d 0a 20 |r buffer|[81];.. |
|00000130| 20 20 20 69 6e 74 20 63 | 74 72 3b 0d 0a 0d 0a 20 | int c|tr;.... |
|00000140| 20 20 20 2f 2a 20 49 6e | 70 75 74 20 61 20 6c 69 | /* In|put a li|
|00000150| 6e 65 20 6f 66 20 74 65 | 78 74 2e 20 2a 2f 0d 0a |ne of te|xt. */..|
|00000160| 0d 0a 20 20 20 20 70 75 | 74 73 28 22 45 6e 74 65 |.. pu|ts("Ente|
|00000170| 72 20 61 20 6c 69 6e 65 | 20 6f 66 20 74 65 78 74 |r a line| of text|
|00000180| 3a 22 29 3b 0d 0a 20 20 | 20 20 67 65 74 73 28 62 |:");.. | gets(b|
|00000190| 75 66 66 65 72 29 3b 0d | 0a 0d 0a 20 20 20 20 2f |uffer);.|... /|
|000001a0| 2a 20 47 6f 20 74 68 72 | 6f 75 67 68 20 74 68 65 |* Go thr|ough the|
|000001b0| 20 73 74 72 69 6e 67 2c | 20 64 69 73 70 6c 61 79 | string,| display|
|000001c0| 69 6e 67 20 6f 6e 6c 79 | 20 74 68 6f 73 65 20 2a |ing only| those *|
|000001d0| 2f 0d 0a 20 20 20 20 2f | 2a 20 63 68 61 72 61 63 |/.. /|* charac|
|000001e0| 74 65 72 73 20 74 68 61 | 74 20 61 72 65 20 6e 6f |ters tha|t are no|
|000001f0| 74 20 6c 6f 77 65 72 63 | 61 73 65 20 76 6f 77 65 |t lowerc|ase vowe|
|00000200| 6c 73 2e 20 2a 2f 0d 0a | 0d 0a 20 20 20 20 66 6f |ls. */..|.. fo|
|00000210| 72 20 28 63 74 72 20 3d | 20 30 3b 20 62 75 66 66 |r (ctr =| 0; buff|
|00000220| 65 72 5b 63 74 72 5d 20 | 21 3d 27 5c 30 27 3b 20 |er[ctr] |!='\0'; |
|00000230| 63 74 72 2b 2b 29 0d 0a | 20 20 20 20 7b 0d 0a 0d |ctr++)..| {...|
|00000240| 0a 20 20 20 20 20 20 20 | 20 2f 2a 20 49 66 20 74 |. | /* If t|
|00000250| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 69 73 20 |he chara|cter is |
|00000260| 61 20 6c 6f 77 65 72 63 | 61 73 65 20 76 6f 77 65 |a lowerc|ase vowe|
|00000270| 6c 2c 20 6c 6f 6f 70 20 | 62 61 63 6b 20 2a 2f 0d |l, loop |back */.|
|00000280| 0a 20 20 20 20 20 20 20 | 20 2f 2a 20 77 69 74 68 |. | /* with|
|00000290| 6f 75 74 20 64 69 73 70 | 6c 61 79 69 6e 67 20 69 |out disp|laying i|
|000002a0| 74 2e 20 2a 2f 0d 0a 0d | 0a 20 20 20 20 20 20 20 |t. */...|. |
|000002b0| 20 69 66 20 28 62 75 66 | 66 65 72 5b 63 74 72 5d | if (buf|fer[ctr]|
|000002c0| 20 3d 3d 20 27 61 27 20 | 7c 7c 20 62 75 66 66 65 | == 'a' ||| buffe|
|000002d0| 72 5b 63 74 72 5d 20 3d | 3d 20 27 65 27 0d 0a 20 |r[ctr] =|= 'e'.. |
|000002e0| 20 20 20 20 20 20 20 20 | 20 20 7c 7c 20 62 75 66 | | || buf|
|000002f0| 66 65 72 5b 63 74 72 5d | 20 3d 3d 20 27 69 27 20 |fer[ctr]| == 'i' |
|00000300| 7c 7c 20 62 75 66 66 65 | 72 5b 63 74 72 5d 20 3d ||| buffe|r[ctr] =|
|00000310| 3d 20 27 6f 27 0d 0a 20 | 20 20 20 20 20 20 20 20 |= 'o'.. | |
|00000320| 20 20 7c 7c 20 62 75 66 | 66 65 72 5b 63 74 72 5d | || buf|fer[ctr]|
|00000330| 20 3d 3d 20 27 75 27 29 | 0d 0a 20 20 20 20 20 20 | == 'u')|.. |
|00000340| 20 20 20 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 | |continue|
|00000350| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 2f 2a 20 |;.... | /* |
|00000360| 49 66 20 6e 6f 74 20 61 | 20 76 6f 77 65 6c 2c 20 |If not a| vowel, |
|00000370| 64 69 73 70 6c 61 79 20 | 69 74 2e 20 2a 2f 0d 0a |display |it. */..|
|00000380| 0d 0a 20 20 20 20 20 20 | 20 20 70 75 74 63 68 61 |.. | putcha|
|00000390| 72 28 62 75 66 66 65 72 | 5b 63 74 72 5d 29 3b 0d |r(buffer|[ctr]);.|
|000003a0| 0a 20 20 20 20 7d 0d 0a | 20 20 20 20 72 65 74 75 |. }..| retu|
|000003b0| 72 6e 20 30 3b 0d 0a 7d | 0d 0a 0d 0a 00 00 00 00 |rn 0;..}|........|
|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| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000420| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000430| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|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 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 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 |........|........|
|00000500| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+