home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c006 / 2.ddi / MAKBTREE.C < prev    next >
DOS BACKUP file  |  1987-11-04  |  656 b 

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: MAKBTREE.C

ConfidenceProgramDetectionMatch TypeSupport
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\MAKBTREE.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 4d 41 | 4b 42 54 52 45 45 2e 43 |GRAMS\MA|KBTREE.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 2f 2a 20 |served | */../* |
|000000d0| 20 20 6d 6b 62 74 72 65 | 65 2e 63 20 3a 20 20 20 | mkbtre|e.c : |
|000000e0| 30 31 2f 32 31 2f 38 35 | 20 2a 2f 0d 0a 0d 0a 23 |01/21/85| */....#|
|000000f0| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00000100| 3e 0d 0a 23 69 6e 63 6c | 75 64 65 20 22 63 62 74 |>..#incl|ude "cbt|
|00000110| 72 65 65 2e 68 22 0d 0a | 0d 0a 76 6f 69 64 20 6d |ree.h"..|..void m|
|00000120| 61 69 6e 28 61 72 67 63 | 2c 20 61 72 67 76 29 0d |ain(argc|, argv).|
|00000130| 0a 69 6e 74 20 61 72 67 | 63 3b 0d 0a 63 68 61 72 |.int arg|c;..char|
|00000140| 20 2a 2a 61 72 67 76 3b | 0d 0a 7b 0d 0a 20 20 20 | **argv;|..{.. |
|00000150| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 73 74 72 |extern c|har *str|
|00000160| 63 70 79 28 29 2c 20 74 | 6f 75 70 70 65 72 28 29 |cpy(), t|oupper()|
|00000170| 2c 20 74 6f 6c 6f 77 65 | 72 28 29 2c 20 2a 73 74 |, tolowe|r(), *st|
|00000180| 72 63 61 74 28 29 3b 0d | 0a 20 20 20 65 78 74 65 |rcat();.|. exte|
|00000190| 72 6e 20 69 6e 74 20 20 | 20 73 74 72 6c 65 6e 28 |rn int | strlen(|
|000001a0| 29 2c 20 65 78 69 74 28 | 29 3b 0d 0a 20 20 20 42 |), exit(|);.. B|
|000001b0| 54 43 20 20 20 20 62 74 | 63 3b 0d 0a 0d 0a 20 20 |TC bt|c;.... |
|000001c0| 20 67 65 74 62 6e 61 6d | 65 28 61 72 67 63 2c 20 | getbnam|e(argc, |
|000001d0| 61 72 67 76 2c 20 26 62 | 74 63 29 3b 20 20 20 2f |argv, &b|tc); /|
|000001e0| 2a 20 70 72 6f 6d 70 74 | 20 66 6f 72 20 26 20 69 |* prompt| for & i|
|000001f0| 6e 69 74 69 61 6c 69 7a | 65 20 42 2b 74 72 65 65 |nitializ|e B+tree|
|00000200| 20 2a 2f 0d 0a 20 20 20 | 63 72 65 61 74 62 74 72 | */.. |creatbtr|
|00000210| 28 26 62 74 63 2c 20 62 | 74 63 2e 69 64 78 6e 61 |(&btc, b|tc.idxna|
|00000220| 6d 65 29 3b 0d 0a 20 20 | 20 70 72 69 6e 74 66 28 |me);.. | printf(|
|00000230| 22 42 2b 74 72 65 65 20 | 27 25 73 27 20 63 72 65 |"B+tree |'%s' cre|
|00000240| 61 74 65 64 20 73 75 63 | 63 65 73 73 66 75 6c 6c |ated suc|cessfull|
|00000250| 79 20 69 6e 20 66 69 6c | 65 20 27 25 73 27 2e 2e |y in fil|e '%s'..|
|00000260| 2e 20 5c 6e 22 2c 0d 0a | 20 20 20 20 20 20 20 20 |. \n",..| |
|00000270| 20 62 74 63 2e 62 74 6e | 61 6d 65 2c 20 62 74 63 | btc.btn|ame, btc|
|00000280| 2e 69 64 78 6e 61 6d 65 | 29 3b 0d 0a 7d 0d 0a 1a |.idxname|);..}...|
+--------+-------------------------+-------------------------+--------+--------+