home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-04-07 | 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).
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, Sun Apr 7 17:31:34 2002, modified Sun Apr 7 17:31:34 2002, creator 'LMAN', type ASCII, 860 bytes "list_it.c" , at 0x3dc 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 09 6c 69 73 74 5f 69 | 74 2e 63 00 00 00 00 00 |..list_i|t.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 5c 00 | 00 01 1e b8 d6 6b 36 b8 |......\.|.....k6.|
|00000060| d6 6b 36 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.k6.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bd 3d 00 00 |........|.....=..|
|00000080| 2f 2a 20 6c 69 73 74 5f | 69 74 2e 63 5f 5f 54 68 |/* list_|it.c__Th|
|00000090| 69 73 20 70 72 6f 67 72 | 61 6d 20 64 69 73 70 6c |is progr|am displ|
|000000a0| 61 79 73 20 61 20 6c 69 | 73 74 69 6e 67 20 77 69 |ays a li|sting wi|
|000000b0| 74 68 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 73 21 |th line |numbers!|
|000000c0| 20 2a 2f 0d 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 | */..#in|clude <s|
|000000d0| 74 64 69 6f 2e 68 3e 0d | 0a 23 69 6e 63 6c 75 64 |tdio.h>.|.#includ|
|000000e0| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0d 0a 0d 0a |e <stdli|b.h>....|
|000000f0| 76 6f 69 64 20 64 69 73 | 70 6c 61 79 5f 75 73 61 |void dis|play_usa|
|00000100| 67 65 28 76 6f 69 64 29 | 3b 0d 0a 69 6e 74 20 6c |ge(void)|;..int l|
|00000110| 69 6e 65 3b 0d 0a 0d 0a | 69 6e 74 20 6d 61 69 6e |ine;....|int main|
|00000120| 28 20 69 6e 74 20 61 72 | 67 63 2c 20 63 68 61 72 |( int ar|gc, char|
|00000130| 20 2a 61 72 67 76 5b 5d | 20 29 0d 0a 7b 0d 0a 20 | *argv[]| )..{.. |
|00000140| 20 20 63 68 61 72 20 62 | 75 66 66 65 72 5b 32 35 | char b|uffer[25|
|00000150| 36 5d 3b 0d 0a 20 20 20 | 46 49 4c 45 20 2a 66 70 |6];.. |FILE *fp|
|00000160| 3b 0d 0a 0d 0a 20 20 20 | 69 66 28 20 61 72 67 63 |;.... |if( argc|
|00000170| 20 3c 20 32 20 29 0d 0a | 20 20 20 7b 0d 0a 20 20 | < 2 )..| {.. |
|00000180| 20 20 20 20 64 69 73 70 | 6c 61 79 5f 75 73 61 67 | disp|lay_usag|
|00000190| 65 28 29 3b 0d 0a 20 20 | 20 20 20 20 72 65 74 75 |e();.. | retu|
|000001a0| 72 6e 20 31 3b 0d 0a 20 | 20 20 7d 0d 0a 0d 0a 20 |rn 1;.. | }.... |
|000001b0| 20 20 69 66 20 28 28 20 | 66 70 20 3d 20 66 6f 70 | if (( |fp = fop|
|000001c0| 65 6e 28 20 61 72 67 76 | 5b 31 5d 2c 20 22 72 22 |en( argv|[1], "r"|
|000001d0| 20 29 29 20 3d 3d 20 4e | 55 4c 4c 20 29 0d 0a 20 | )) == N|ULL ).. |
|000001e0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 66 70 72 | {.. | fpr|
|000001f0| 69 6e 74 66 28 20 73 74 | 64 65 72 72 2c 20 22 45 |intf( st|derr, "E|
|00000200| 72 72 6f 72 20 6f 70 65 | 6e 69 6e 67 20 66 69 6c |rror ope|ning fil|
|00000210| 65 2c 20 25 73 21 22 2c | 20 61 72 67 76 5b 31 5d |e, %s!",| argv[1]|
|00000220| 20 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 72 65 74 | );.. | ret|
|00000230| 75 72 6e 28 31 29 3b 0d | 0a 20 20 20 7d 0d 0a 0d |urn(1);.|. }...|
|00000240| 0a 20 20 20 6c 69 6e 65 | 20 3d 20 31 3b 0d 0a 0d |. line| = 1;...|
|00000250| 0a 20 20 20 77 68 69 6c | 65 28 20 66 67 65 74 73 |. whil|e( fgets|
|00000260| 28 20 62 75 66 66 65 72 | 2c 20 32 35 36 2c 20 66 |( buffer|, 256, f|
|00000270| 70 20 29 20 21 3d 20 4e | 55 4c 4c 20 29 0d 0a 20 |p ) != N|ULL ).. |
|00000280| 20 20 20 20 20 66 70 72 | 69 6e 74 66 28 20 73 74 | fpr|intf( st|
|00000290| 64 6f 75 74 2c 20 22 25 | 34 64 3a 5c 74 25 73 22 |dout, "%|4d:\t%s"|
|000002a0| 2c 20 6c 69 6e 65 2b 2b | 2c 20 62 75 66 66 65 72 |, line++|, buffer|
|000002b0| 20 29 3b 0d 0a 0d 0a 20 | 20 20 66 63 6c 6f 73 65 | );.... | fclose|
|000002c0| 28 66 70 29 3b 0d 0a 20 | 20 20 72 65 74 75 72 6e |(fp);.. | return|
|000002d0| 20 30 3b 0d 0a 7d 0d 0a | 0d 0a 76 6f 69 64 20 64 | 0;..}..|..void d|
|000002e0| 69 73 70 6c 61 79 5f 75 | 73 61 67 65 28 76 6f 69 |isplay_u|sage(voi|
|000002f0| 64 29 0d 0a 7b 0d 0a 20 | 20 20 20 20 20 66 70 72 |d)..{.. | fpr|
|00000300| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 5c 6e |intf(std|err, "\n|
|00000310| 50 72 6f 70 65 72 20 55 | 73 61 67 65 20 69 73 3a |Proper U|sage is:|
|00000320| 20 22 20 29 3b 0d 0a 20 | 20 20 20 20 20 66 70 72 | " );.. | fpr|
|00000330| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 5c 6e |intf(std|err, "\n|
|00000340| 5c 6e 6c 69 73 74 5f 69 | 74 20 66 69 6c 65 6e 61 |\nlist_i|t filena|
|00000350| 6d 65 2e 65 78 74 5c 6e | 22 20 29 3b 0d 0a 7d 0d |me.ext\n|" );..}.|
|00000360| 0a 0d 0a 0d 0a 2f 2a 20 | 46 75 6e 63 74 69 6f 6e |...../* |Function|
|00000370| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 70 72 6f | returns| the pro|
|00000380| 64 75 63 74 20 6f 66 20 | 74 68 65 20 74 77 6f 20 |duct of |the two |
|00000390| 76 61 6c 75 65 73 20 70 | 72 6f 76 69 64 65 64 20 |values p|rovided |
|000003a0| 2a 2f 0d 0a 69 6e 74 20 | 70 72 6f 64 75 63 74 28 |*/..int |product(|
|000003b0| 69 6e 74 20 78 2c 20 69 | 6e 74 20 79 29 0d 0a 7b |int x, i|nt y)..{|
|000003c0| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 28 78 20 |.. re|turn (x |
|000003d0| 2a 20 79 29 3b 0d 0a 7d | 0d 0a 0d 0a 00 00 00 00 |* y);..}|........|
|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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+