home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: DOS BACKUP file
(archive/dosBackupFile).
You can browse this item here: LOOKHDR.C
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| DOS BACKUP file (archive/dosBackupFile)
| magic
| Supported |
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
100%
| file
| DOS 2.0-3.2 backed up file \CBTREE\PROGRAMS\LOOKHDR.C
| default
| |
99%
| file
| data
| default
| |
51%
| TrID
| DOS 2.0-3.2 backup
| default
| |
48%
| TrID
| MP3 audio
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| ff 01 00 00 00 5c 43 42 | 54 52 45 45 5c 50 52 4f |.....\CB|TREE\PRO|
|00000010| 47 52 41 4d 53 5c 4c 4f | 4f 4b 48 44 52 2e 43 00 |GRAMS\LO|OKHDR.C.|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 1b 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 20 28 43 29 20 43 | 6f 70 79 72 69 67 68 74 |/* (C) C|opyright|
|00000090| 20 31 39 38 34 2c 38 35 | 2c 38 36 2c 38 37 20 57 | 1984,85|,86,87 W|
|000000a0| 61 6c 74 65 72 20 4c 2e | 20 50 65 61 63 6f 63 6b |alter L.| Peacock|
|000000b0| 20 20 20 41 6c 6c 20 52 | 69 67 68 74 73 20 52 65 | All R|ights Re|
|000000c0| 73 65 72 76 65 64 20 20 | 20 2a 2f 0d 0a 2f 2a 20 |served | */../* |
|000000d0| 20 6c 20 6f 20 6f 20 6b | 20 68 20 64 20 72 20 2e | l o o k| h d r .|
|000000e0| 20 63 20 20 20 30 31 2f | 33 30 2f 38 35 20 20 20 | c 01/|30/85 |
|000000f0| 2a 2f 0d 0a 0d 0a 23 69 | 6e 63 6c 75 64 65 20 3c |*/....#i|nclude <|
|00000100| 73 74 64 69 6f 2e 68 3e | 0d 0a 23 69 6e 63 6c 75 |stdio.h>|..#inclu|
|00000110| 64 65 20 22 63 62 74 72 | 65 65 2e 68 22 0d 0a 0d |de "cbtr|ee.h"...|
|00000120| 0a 23 69 66 20 41 6d 69 | 67 61 44 4f 53 20 26 20 |.#if Ami|gaDOS & |
|00000130| 4c 43 0d 0a 23 64 65 66 | 69 6e 65 20 70 72 69 6e |LC..#def|ine prin|
|00000140| 74 66 20 69 70 72 69 6e | 74 66 0d 0a 23 65 6e 64 |tf iprin|tf..#end|
|00000150| 69 66 0d 0a 0d 0a 76 6f | 69 64 20 6d 61 69 6e 28 |if....vo|id main(|
|00000160| 61 72 67 63 2c 20 61 72 | 67 76 29 20 20 20 20 20 |argc, ar|gv) |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 64 69 73 | | /* dis|
|00000180| 70 6c 61 79 20 74 68 65 | 20 68 65 61 64 65 72 20 |play the| header |
|00000190| 72 65 63 6f 72 64 20 6f | 66 20 61 20 64 61 74 61 |record o|f a data|
|000001a0| 20 66 69 6c 65 2e 20 2a | 2f 0d 0a 69 6e 74 20 20 | file. *|/..int |
|000001b0| 20 61 72 67 63 3b 0d 0a | 63 68 61 72 20 2a 61 72 | argc;..|char *ar|
|000001c0| 67 76 5b 5d 3b 0d 0a 7b | 0d 0a 20 20 20 65 78 74 |gv[];..{|.. ext|
|000001d0| 65 72 6e 20 63 68 61 72 | 20 2a 63 61 6c 6c 6f 63 |ern char| *calloc|
|000001e0| 28 29 3b 0d 0a 20 20 20 | 65 78 74 65 72 6e 20 63 |();.. |extern c|
|000001f0| 68 61 72 20 2a 73 74 72 | 63 70 79 28 29 3b 0d 0a |har *str|cpy();..|
|00000200| 20 20 20 65 78 74 65 72 | 6e 20 76 6f 69 64 20 20 | exter|n void |
|00000210| 65 78 69 74 28 29 3b 0d | 0a 20 20 20 65 78 74 65 |exit();.|. exte|
|00000220| 72 6e 20 69 6e 74 20 20 | 20 6f 70 65 6e 28 29 3b |rn int | open();|
|00000230| 0d 0a 20 20 20 65 78 74 | 65 72 6e 20 69 6e 74 20 |.. ext|ern int |
|00000240| 20 20 63 6c 6f 73 65 28 | 29 3b 0d 0a 20 20 20 65 | close(|);.. e|
|00000250| 78 74 65 72 6e 20 76 6f | 69 64 20 20 66 72 65 65 |xtern vo|id free|
|00000260| 28 29 3b 0d 0a 20 20 20 | 42 54 42 4c 4b 48 44 52 |();.. |BTBLKHDR|
|00000270| 20 66 72 65 65 73 70 63 | 3b 0d 0a 20 20 20 63 68 | freespc|;.. ch|
|00000280| 61 72 20 66 69 6c 65 6e | 6d 65 5b 31 34 5d 3b 0d |ar filen|me[14];.|
|00000290| 0a 20 20 20 69 6e 74 20 | 66 64 31 3b 0d 0a 0d 0a |. int |fd1;....|
|000002a0| 20 20 20 77 6f 70 65 6e | 28 22 43 4f 4e 3a 30 2f | wopen|("CON:0/|
|000002b0| 30 2f 36 34 30 2f 32 30 | 30 2f 4c 6f 6f 6b 68 64 |0/640/20|0/Lookhd|
|000002c0| 72 22 29 3b 0d 0a 0d 0a | 20 20 20 73 63 72 5f 63 |r");....| scr_c|
|000002d0| 6c 72 28 29 3b 0d 0a 20 | 20 20 73 63 72 5f 63 75 |lr();.. | scr_cu|
|000002e0| 72 73 28 33 2c 20 31 38 | 29 3b 0d 0a 20 20 20 70 |rs(3, 18|);.. p|
|000002f0| 72 69 6e 74 66 28 22 20 | 44 69 73 70 6c 61 79 20 |rintf(" |Display |
|00000300| 46 69 6c 65 20 48 65 61 | 64 65 72 20 52 65 63 6f |File Hea|der Reco|
|00000310| 72 64 2e 2e 2e 5c 6e 22 | 29 3b 0d 0a 0d 0a 20 20 |rd...\n"|);.... |
|00000320| 20 66 64 31 20 3d 20 67 | 65 74 66 6e 61 6d 65 28 | fd1 = g|etfname(|
|00000330| 61 72 67 63 2c 20 61 72 | 67 76 2c 20 22 69 64 78 |argc, ar|gv, "idx|
|00000340| 22 2c 20 66 69 6c 65 6e | 6d 65 29 3b 0d 0a 0d 0a |", filen|me);....|
|00000350| 20 20 20 20 20 20 2f 2a | 20 20 4d 20 41 20 49 20 | /*| M A I |
|00000360| 4e 20 20 43 20 4f 20 4e | 20 54 20 52 20 4f 20 4c |N C O N| T R O L|
|00000370| 20 20 50 20 52 20 4f 20 | 47 20 52 20 41 20 4d 20 | P R O |G R A M |
|00000380| 2a 2f 0d 0a 0d 0a 20 20 | 20 67 65 74 66 68 64 72 |*/.... | getfhdr|
|00000390| 28 26 66 72 65 65 73 70 | 63 2c 20 66 64 31 29 3b |(&freesp|c, fd1);|
|000003a0| 0d 0a 0d 0a 20 20 20 70 | 72 69 6e 74 66 28 22 5c |.... p|rintf("\|
|000003b0| 6e 5c 6e 20 20 20 20 46 | 72 65 65 20 4c 69 73 74 |n\n F|ree List|
|000003c0| 20 50 6f 69 6e 74 65 72 | 20 20 66 6f 72 20 20 66 | Pointer| for f|
|000003d0| 69 6c 65 20 27 25 73 27 | 20 69 73 3a 20 20 25 6c |ile '%s'| is: %l|
|000003e0| 75 20 28 30 78 25 30 34 | 6c 78 29 22 2c 0d 0a 20 |u (0x%04|lx)",.. |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 69 6c | | fil|
|00000410| 65 6e 6d 65 2c 20 66 72 | 65 65 73 70 63 2e 66 72 |enme, fr|eespc.fr|
|00000420| 65 65 6c 73 74 2c 20 66 | 72 65 65 73 70 63 2e 66 |eelst, f|reespc.f|
|00000430| 72 65 65 6c 73 74 29 3b | 0d 0a 20 20 20 70 72 69 |reelst);|.. pri|
|00000440| 6e 74 66 28 22 5c 6e 5c | 6e 20 20 20 20 45 6e 64 |ntf("\n\|n End|
|00000450| 20 4f 66 20 46 69 6c 65 | 20 50 6f 69 6e 74 65 72 | Of File| Pointer|
|00000460| 20 66 6f 72 20 66 69 6c | 65 20 27 25 73 27 20 69 | for fil|e '%s' i|
|00000470| 73 3a 20 20 25 6c 75 20 | 28 30 78 25 30 34 6c 78 |s: %lu |(0x%04lx|
|00000480| 29 22 2c 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |)",.. | |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004a0| 20 20 20 66 69 6c 65 6e | 6d 65 2c 20 66 72 65 65 | filen|me, free|
|000004b0| 73 70 63 2e 65 6f 66 6c | 73 74 2c 20 66 72 65 65 |spc.eofl|st, free|
|000004c0| 73 70 63 2e 65 6f 66 6c | 73 74 29 3b 0d 0a 0d 0a |spc.eofl|st);....|
|000004d0| 20 20 20 63 6c 6f 73 65 | 28 66 64 31 29 3b 0d 0a | close|(fd1);..|
|000004e0| 20 20 20 77 63 6c 6f 73 | 65 28 29 3b 20 20 20 2f | wclos|e(); /|
|000004f0| 2a 20 63 6c 6f 73 65 20 | 41 6d 69 67 61 20 77 69 |* close |Amiga wi|
|00000500| 6e 64 6f 77 20 2a 2f 0d | 0a 20 20 20 70 75 74 73 |ndow */.|. puts|
|00000510| 28 22 22 29 3b 0d 0a 7d | 0d 0a 1a |("");..}|... |
+--------+-------------------------+-------------------------+--------+--------+