Category : Recently Uploaded Files
Archive   : MSQ320.ZIP
Filename : MXBT.H

 
Output of file : MXBT.H contained in archive : MSQ320.ZIP
/* This program written by Paul Edwards and released to the public
domain. See mxbt.c for documentation. */

#ifndef MXBT_INCLUDED
#define MXBT_INCLUDED

#include

struct mxbt_ctlrec
{
/* I have commented out the below, and read it in separately, so
as to minimize alignment problems. The definition of this
file format is now "The control record consists of two parts,
a short integer followed by the following structure, stored
in native format. The index and leaf records remain in native
format". */
/* unsigned short recsize; */
long indexStart;
long rootStart;
long lastBlock;
long firstLeaf;
long lastLeaf;
long freeList;
unsigned short levels;
unsigned short xor;
};

struct mxbt_leafrec
{
long recType;
long prev;
long next;
short keyCount;
unsigned short keyStart;
struct {
unsigned short offset;
unsigned short len;
long value;
} keys[1];
};

struct mxbt_indexrec
{
long recType;
long prev;
long next;
short keyCount;
unsigned short keyStart;
struct {
unsigned short offset;
unsigned short len;
long value;
long lower;
} keys[1];
};

typedef struct {
int error;
FILE *fp;
long value;
int (*compareF)(void *testKey, void *searchKey, int len);
void *searchK;
union
{
char intbuf[512];
long x;
} myunion;
char *buf;
struct mxbt_ctlrec control;
struct mxbt_indexrec *index;
struct mxbt_leafrec *leaf;
unsigned short recSize;
long recordNum;
} MXBT;

long mxbtOneSearch(MXBT *mxbt,
char *indexFile,
void *searchKey,
int (*compare)(void *testKey, void *searchKey, int len));

#endif


  3 Responses to “Category : Recently Uploaded Files
Archive   : MSQ320.ZIP
Filename : MXBT.H

  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: http://www.os2museum.com/wp/mtswslnk/