home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-04-21 | 1.5 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 21 14:33:12 2002, modified Sun Apr 21 14:33:12 2002, creator 'LMAN', type ASCII, 984 bytes "print_it2.c" , at 0x458 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 0b 70 72 69 6e 74 5f | 69 74 32 2e 63 00 00 00 |..print_|it2.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 d8 00 | 00 01 1e b8 e8 b6 68 b8 |........|......h.|
|00000060| e8 b6 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 03 90 00 00 |........|........|
|00000080| 2f 2a 20 70 72 69 6e 74 | 5f 69 74 2e 63 2d 2d 54 |/* print|_it.c--T|
|00000090| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 70 72 69 6e |his prog|ram prin|
|000000a0| 74 73 20 61 20 6c 69 73 | 74 69 6e 67 20 77 69 74 |ts a lis|ting wit|
|000000b0| 68 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 73 21 20 |h line n|umbers! |
|000000c0| 2a 2f 0d 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |*/..#inc|lude <st|
|000000d0| 64 6c 69 62 2e 68 3e 0d | 0a 23 69 6e 63 6c 75 64 |dlib.h>.|.#includ|
|000000e0| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0d 0a 0d 0a 76 |e <stdio|.h>....v|
|000000f0| 6f 69 64 20 64 6f 5f 68 | 65 61 64 69 6e 67 28 63 |oid do_h|eading(c|
|00000100| 68 61 72 20 2a 66 69 6c | 65 6e 61 6d 65 29 3b 0d |har *fil|ename);.|
|00000110| 0a 0d 0a 69 6e 74 20 6c | 69 6e 65 2c 20 70 61 67 |...int l|ine, pag|
|00000120| 65 3b 0d 0a 0d 0a 69 6e | 74 20 6d 61 69 6e 28 20 |e;....in|t main( |
|00000130| 69 6e 74 20 61 72 67 76 | 2c 20 63 68 61 72 20 2a |int argv|, char *|
|00000140| 61 72 67 63 5b 5d 20 29 | 0d 0a 7b 0d 0a 20 20 63 |argc[] )|..{.. c|
|00000150| 68 61 72 20 62 75 66 66 | 65 72 5b 32 35 36 5d 3b |har buff|er[256];|
|00000160| 0d 0a 20 20 46 49 4c 45 | 20 2a 66 70 3b 0d 0a 0d |.. FILE| *fp;...|
|00000170| 0a 20 20 69 66 28 20 61 | 72 67 76 20 3c 20 32 20 |. if( a|rgv < 2 |
|00000180| 29 0d 0a 20 20 7b 0d 0a | 20 20 20 20 20 66 70 72 |).. {..| fpr|
|00000190| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 5c 6e |intf(std|err, "\n|
|000001a0| 50 72 6f 70 65 72 20 55 | 73 61 67 65 20 69 73 3a |Proper U|sage is:|
|000001b0| 20 22 20 29 3b 0d 0a 20 | 20 20 20 20 66 70 72 69 | " );.. | fpri|
|000001c0| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 5c 6e 5c |ntf(stde|rr, "\n\|
|000001d0| 6e 50 52 49 4e 54 5f 49 | 54 20 66 69 6c 65 6e 61 |nPRINT_I|T filena|
|000001e0| 6d 65 2e 65 78 74 5c 6e | 22 20 29 3b 0d 0a 20 20 |me.ext\n|" );.. |
|000001f0| 20 20 20 72 65 74 75 72 | 6e 28 31 29 3b 0d 0a 20 | retur|n(1);.. |
|00000200| 20 7d 0d 0a 0d 0a 20 20 | 69 66 20 28 28 20 66 70 | }.... |if (( fp|
|00000210| 20 3d 20 66 6f 70 65 6e | 28 20 61 72 67 63 5b 31 | = fopen|( argc[1|
|00000220| 5d 2c 20 22 72 22 20 29 | 29 20 3d 3d 20 4e 55 4c |], "r" )|) == NUL|
|00000230| 4c 20 29 0d 0a 20 20 7b | 0d 0a 20 20 20 20 20 20 |L ).. {|.. |
|00000240| 20 66 70 72 69 6e 74 66 | 28 20 73 74 64 65 72 72 | fprintf|( stderr|
|00000250| 2c 20 22 45 72 72 6f 72 | 20 6f 70 65 6e 69 6e 67 |, "Error| opening|
|00000260| 20 66 69 6c 65 2c 20 25 | 73 21 22 2c 20 61 72 67 | file, %|s!", arg|
|00000270| 63 5b 31 5d 29 3b 0d 0a | 20 20 20 20 20 20 20 72 |c[1]);..| r|
|00000280| 65 74 75 72 6e 28 31 29 | 3b 0d 0a 20 20 7d 0d 0a |eturn(1)|;.. }..|
|00000290| 0d 0a 20 20 70 61 67 65 | 20 3d 20 30 3b 0d 0a 20 |.. page| = 0;.. |
|000002a0| 20 6c 69 6e 65 20 3d 20 | 31 3b 0d 0a 20 20 64 6f | line = |1;.. do|
|000002b0| 5f 68 65 61 64 69 6e 67 | 28 20 61 72 67 63 5b 31 |_heading|( argc[1|
|000002c0| 5d 29 3b 0d 0a 0d 0a 20 | 20 77 68 69 6c 65 28 20 |]);.... | while( |
|000002d0| 66 67 65 74 73 28 20 62 | 75 66 66 65 72 2c 20 32 |fgets( b|uffer, 2|
|000002e0| 35 36 2c 20 66 70 20 29 | 20 21 3d 20 4e 55 4c 4c |56, fp )| != NULL|
|000002f0| 20 29 0d 0a 20 20 7b 0d | 0a 20 20 20 20 20 69 66 | ).. {.|. if|
|00000300| 28 20 6c 69 6e 65 20 25 | 20 35 35 20 3d 3d 20 30 |( line %| 55 == 0|
|00000310| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 64 6f 5f 68 | ).. | do_h|
|00000320| 65 61 64 69 6e 67 28 20 | 61 72 67 63 5b 31 5d 20 |eading( |argc[1] |
|00000330| 29 3b 0d 0a 0d 0a 20 20 | 20 20 20 66 70 72 69 6e |);.... | fprin|
|00000340| 74 66 28 20 73 74 64 6f | 75 74 2c 20 22 25 34 64 |tf( stdo|ut, "%4d|
|00000350| 3a 5c 74 25 73 22 2c 20 | 6c 69 6e 65 2b 2b 2c 20 |:\t%s", |line++, |
|00000360| 62 75 66 66 65 72 20 29 | 3b 0d 0a 20 20 7d 0d 0a |buffer )|;.. }..|
|00000370| 0d 0a 20 20 66 70 72 69 | 6e 74 66 28 20 73 74 64 |.. fpri|ntf( std|
|00000380| 6f 75 74 2c 20 22 5c 66 | 22 20 29 3b 0d 0a 20 20 |out, "\f|" );.. |
|00000390| 66 63 6c 6f 73 65 28 66 | 70 29 3b 0d 0a 20 20 72 |fclose(f|p);.. r|
|000003a0| 65 74 75 72 6e 20 30 3b | 0d 0a 7d 0d 0a 0d 0a 76 |eturn 0;|..}....v|
|000003b0| 6f 69 64 20 64 6f 5f 68 | 65 61 64 69 6e 67 28 20 |oid do_h|eading( |
|000003c0| 63 68 61 72 20 2a 66 69 | 6c 65 6e 61 6d 65 20 29 |char *fi|lename )|
|000003d0| 0d 0a 7b 0d 0a 20 20 20 | 70 61 67 65 2b 2b 3b 0d |..{.. |page++;.|
|000003e0| 0a 0d 0a 20 20 20 69 66 | 20 28 20 70 61 67 65 20 |... if| ( page |
|000003f0| 3e 20 31 29 0d 0a 20 20 | 20 20 20 20 66 70 72 69 |> 1).. | fpri|
|00000400| 6e 74 66 28 20 73 74 64 | 6f 75 74 2c 20 22 5c 66 |ntf( std|out, "\f|
|00000410| 22 20 29 3b 0d 0a 0d 0a | 20 20 20 66 70 72 69 6e |" );....| fprin|
|00000420| 74 66 28 20 73 74 64 6f | 75 74 2c 20 22 50 61 67 |tf( stdo|ut, "Pag|
|00000430| 65 3a 20 25 64 2c 20 25 | 73 5c 6e 5c 6e 22 2c 20 |e: %d, %|s\n\n", |
|00000440| 70 61 67 65 2c 20 66 69 | 6c 65 6e 61 6d 65 20 29 |page, fi|lename )|
|00000450| 3b 0d 0a 7d 0d 0a 0d 0a | 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+