FATS - Fast Access Tree System
Table of Contents
Programming Interfaces
Turbo C, Borland C, C++ for DOS

Turbo C, Borland C, C++ for DOS


 
Needed Object Files

To link FATS to your programs you will need the following object modules:

fats.objThe FATS module for DOS
fats_tcs.objinterface / small-model
fats_tcm.objinterface / medium-model
fats_tcc.objinterface / compact-model
fats_tcl.objinterface / large-model

The following libraries are included on the distribution diskette to call the FATS Workstation Engine:

fatstcsr.libinterface / small-model
fatstcmr.libinterface / medium-model
fatstccr.libinterface / compact-model
fatstclr.libinterface / large-model

If you want to make calls to the extended version of FATS (FATSXWE.EXE), you have to use the libraries fatsxcsr.lib (small), fatsxcmr.lib (medium), fatsxccr.lib (compact) or fatsxclr.lib (large).

 
Linking a Turbo C Program with FATS

To compile and link a application that calls FATS, use ONE of the following methods:

1. METHOD: Linking FATS to the program

BCC -m[?] tst1_eng.c fats.obj fats_tc[?].obj
[?] == s (small model), m (medium), c (compact), l (large)

2. METHOD: Calling the Workstation Engine (FATS_WE.EXE)

BCC -m[?] tst1_eng.c fatstc[?]r.lib

or if you own the extended version of FATS: (FATSXWE.EXE)

BCC -m[?] tst1_eng.c fatsxc[?]r.lib

 
Calling FATS

FATS commands are executed with the function FATSCALL:

unsigned long FATSCALL(char *szCmnd, unsigned short *nErrorcode, char *szFatsKey);

Parameter Usage:

szCmndCommand string (input)
nErrorcodeErrorcode (output)
szFatsKeyKey value (output)
Return Value:Record Number

 
Testprograms

The FATS distribution disk for PC-DOS/MS-DOS contains some test programs in the directory DOS_16I\C\BORLAND that illustrate how you can use the FATS commands in your programs:

 tst1_eng.cTest program for Turbo-C / Borland C
 rebuild.cRe-Indexing a Data File (commands 'BK', 'DL')

The extended version of FATS contains the following additional test programs:

 tst2_eng.cIntroduction to the Matchcode Functions
 mcsort.cUse of the key-flag with command 'MC'
 reindex.cFast Re-Indexing with the command 'XB'

 
Compatible Programming Interfaces

You also can use the interfaces provided by the FABS PLUS modules. Please take notice of the additional information at pages  4-77 and 9-77.

The following FABS interfaces are available:

FABS86Exported from the object modules FATS_TCS.obj, FATS_TCM.obj and FATS_TCL.obj


 

© 2008  GCS Software, Udo Gertz