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: DELBTREE.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\DELBTREE.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 44 45 | 4c 42 54 52 45 45 2e 43 |GRAMS\DE|LBTREE.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 1c 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 0d 0a 2f |served | */..../|
|000000d0| 2a 20 54 48 49 53 20 50 | 52 4f 47 52 41 4d 20 42 |* THIS P|ROGRAM B|
|000000e0| 45 4c 4f 4e 47 53 20 54 | 4f 20 57 41 4c 54 45 52 |ELONGS T|O WALTER|
|000000f0| 20 4c 2e 20 50 45 41 43 | 4f 43 4b 2e 20 20 49 54 | L. PEAC|OCK. IT|
|00000100| 20 49 53 20 43 4f 4e 53 | 49 44 45 52 45 44 20 41 | IS CONS|IDERED A|
|00000110| 20 54 52 41 44 45 20 2a | 2f 0d 0a 2f 2a 20 53 45 | TRADE *|/../* SE|
|00000120| 43 52 45 54 20 41 4e 44 | 20 49 53 20 4e 4f 54 20 |CRET AND| IS NOT |
|00000130| 54 4f 20 42 45 20 44 49 | 56 55 4c 47 45 44 20 4f |TO BE DI|VULGED O|
|00000140| 52 20 55 53 45 44 20 42 | 59 20 50 41 52 54 49 45 |R USED B|Y PARTIE|
|00000150| 53 20 57 48 4f 20 48 41 | 56 45 20 4e 4f 54 20 20 |S WHO HA|VE NOT |
|00000160| 20 2a 2f 0d 0a 2f 2a 20 | 52 45 43 45 49 56 45 44 | */../* |RECEIVED|
|00000170| 20 57 52 49 54 54 45 4e | 20 41 55 54 48 4f 52 49 | WRITTEN| AUTHORI|
|00000180| 5a 41 54 49 4f 4e 20 46 | 52 4f 4d 20 54 48 45 20 |ZATION F|ROM THE |
|00000190| 4f 57 4e 45 52 2e 20 20 | 20 20 20 20 20 20 20 20 |OWNER. | |
|000001a0| 20 20 20 20 20 20 20 20 | 2a 2f 0d 0a 0d 0a 2f 2a | |*/..../*|
|000001b0| 20 30 39 2f 31 31 2f 38 | 37 20 20 44 20 45 20 4c | 09/11/8|7 D E L|
|000001c0| 20 42 20 54 20 52 20 45 | 20 45 20 2e 20 43 20 20 | B T R E| E . C |
|000001d0| 20 64 65 6c 65 74 65 20 | 67 69 76 65 6e 20 42 2b | delete |given B+|
|000001e0| 74 72 65 65 20 2a 2f 0d | 0a 0d 0a 23 69 6e 63 6c |tree */.|...#incl|
|000001f0| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0d 0a 23 |ude <std|io.h>..#|
|00000200| 69 6e 63 6c 75 64 65 20 | 22 63 62 74 72 65 65 2e |include |"cbtree.|
|00000210| 68 22 0d 0a 2f 2a 20 62 | 74 66 69 6f 2e 68 20 2a |h"../* b|tfio.h *|
|00000220| 6d 75 73 74 2a 20 62 65 | 20 69 6e 63 6c 75 64 65 |must* be| include|
|00000230| 64 20 77 68 65 6e 20 62 | 74 5f 6f 70 65 6e 28 29 |d when b|t_open()|
|00000240| 20 69 73 20 75 73 65 64 | 20 2a 2f 0d 0a 23 69 6e | is used| */..#in|
|00000250| 63 6c 75 64 65 20 22 62 | 74 66 69 6f 2e 68 22 0d |clude "b|tfio.h".|
|00000260| 0a 0d 0a 23 69 66 20 43 | 49 20 7c 20 44 43 0d 0a |...#if C|I | DC..|
|00000270| 23 65 6c 73 65 0d 0a 23 | 69 6e 63 6c 75 64 65 20 |#else..#|include |
|00000280| 3c 63 74 79 70 65 2e 68 | 3e 0d 0a 23 65 6e 64 69 |<ctype.h|>..#endi|
|00000290| 66 0d 0a 0d 0a 76 6f 69 | 64 20 6d 61 69 6e 28 61 |f....voi|d main(a|
|000002a0| 72 67 63 2c 20 61 72 67 | 76 29 0d 0a 69 6e 74 20 |rgc, arg|v)..int |
|000002b0| 20 61 72 67 63 3b 0d 0a | 63 68 61 72 20 2a 61 72 | argc;..|char *ar|
|000002c0| 67 76 5b 5d 3b 0d 0a 7b | 0d 0a 20 20 20 65 78 74 |gv[];..{|.. ext|
|000002d0| 65 72 6e 20 63 68 61 72 | 20 2a 73 74 72 63 70 79 |ern char| *strcpy|
|000002e0| 28 29 2c 20 2a 73 74 72 | 63 61 74 28 29 3b 0d 0a |(), *str|cat();..|
|000002f0| 20 20 20 65 78 74 65 72 | 6e 20 69 6e 74 20 20 20 | exter|n int |
|00000300| 73 74 72 6c 65 6e 28 29 | 2c 20 65 78 69 74 28 29 |strlen()|, exit()|
|00000310| 2c 20 63 6c 6f 73 65 28 | 29 3b 0d 0a 20 20 20 42 |, close(|);.. B|
|00000320| 54 43 20 20 20 20 62 74 | 63 6f 6d 6d 6f 3b 0d 0a |TC bt|commo;..|
|00000330| 20 20 20 69 6e 74 20 20 | 62 2c 20 66 64 3b 0d 0a | int |b, fd;..|
|00000340| 0d 0a 20 20 20 67 65 74 | 62 6e 61 6d 65 28 61 72 |.. get|bname(ar|
|00000350| 67 63 2c 20 61 72 67 76 | 2c 20 26 62 74 63 6f 6d |gc, argv|, &btcom|
|00000360| 6d 6f 29 3b 0d 0a 0d 0a | 20 20 20 69 66 20 28 28 |mo);....| if ((|
|00000370| 66 64 20 3d 20 62 74 5f | 6f 70 65 6e 28 62 74 63 |fd = bt_|open(btc|
|00000380| 6f 6d 6d 6f 2e 69 64 78 | 6e 61 6d 65 2c 20 4f 5f |ommo.idx|name, O_|
|00000390| 52 44 57 52 29 29 20 3d | 3d 20 45 52 52 29 0d 0a |RDWR)) =|= ERR)..|
|000003a0| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 49 6e | pr|intf("In|
|000003b0| 64 65 78 20 66 69 6c 65 | 20 27 25 73 27 20 4e 4f |dex file| '%s' NO|
|000003c0| 54 20 66 6f 75 6e 64 2e | 2e 2e 20 5c 6e 5c 6e 22 |T found.|.. \n\n"|
|000003d0| 2c 20 62 74 63 6f 6d 6d | 6f 2e 69 64 78 6e 61 6d |, btcomm|o.idxnam|
|000003e0| 65 29 3b 0d 0a 20 20 20 | 65 6c 73 65 0d 0a 20 20 |e);.. |else.. |
|000003f0| 20 7b 0d 0a 20 20 20 20 | 20 20 62 20 3d 20 64 65 | {.. | b = de|
|00000400| 6c 65 74 62 74 72 28 66 | 64 2c 20 62 74 63 6f 6d |letbtr(f|d, btcom|
|00000410| 6d 6f 2e 66 69 6e 64 72 | 6f 6f 74 29 3b 0d 0a 20 |mo.findr|oot);.. |
|00000420| 20 20 20 20 20 63 6c 6f | 73 65 28 66 64 29 3b 0d | clo|se(fd);.|
|00000430| 0a 20 20 20 7d 0d 0a 20 | 20 20 70 72 69 6e 74 66 |. }.. | printf|
|00000440| 28 22 5c 6e 42 2d 74 72 | 65 65 20 27 25 73 27 20 |("\nB-tr|ee '%s' |
|00000450| 25 73 64 65 6c 65 74 65 | 64 20 73 75 63 63 65 73 |%sdelete|d succes|
|00000460| 73 66 75 6c 6c 79 20 69 | 6e 20 66 69 6c 65 20 27 |sfully i|n file '|
|00000470| 25 73 27 2e 5c 6e 22 2c | 0d 0a 20 20 20 20 20 20 |%s'.\n",|.. |
|00000480| 62 74 63 6f 6d 6d 6f 2e | 62 74 6e 61 6d 65 2c 20 |btcommo.|btname, |
|00000490| 62 20 3f 20 22 22 20 3a | 20 22 4e 4f 54 20 22 2c |b ? "" :| "NOT ",|
|000004a0| 20 62 74 63 6f 6d 6d 6f | 2e 69 64 78 6e 61 6d 65 | btcommo|.idxname|
|000004b0| 29 3b 0d 0a 7d 0d 0a 1a | |);..}...| |
+--------+-------------------------+-------------------------+--------+--------+