Category : C Source Code
Archive   : BTREE2.ZIP
Filename : TREEINIT.C

Output of file : TREEINIT.C contained in archive : BTREE2.ZIP
#include "stdio.h"
#include "btree.h"

/* This program initializes a file as a valid key file. This
* program must be used to set-up key files properly.

extern char instr[];

FILE *fopen(), *fd;
char filename[20];
struct keyinfo fileinfo;

printf("\n\nName of key file to initialize: ");
printf("\n\nLength of Key: ");
fileinfo.keylength = atoi(instr);
if ((fd = fopen(filename, "w")) != NULL) {
else {
printf("\nCan't open file %s\n", filename);

  3 Responses to “Category : C Source Code
Archive   : BTREE2.ZIP
Filename : TREEINIT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: