FATS - Fast Access Tree System
Table of Contents
Programming Interfaces
MS-C for OS/2

MS-C for OS/2


 
Needed Object Files

fats.obj, fats_mcs.objInterface / small-model
fats.obj, fats_mcm.objInterface / medium-model
fats.obj, fats_mcc.objInterface / compact-model
fats.obj, fats_mcl.objInterface / large-model

If you want to make calls to the extended version of FATS, you have to choose fatsx.obj instead of fats.obj.

 
Linking a MS-C Program with FATS

To compile and link a application that calls FATS, use the following commands:

CL /Lp /A[?] /Ot tst1_eng.c fats.obj fats_mc[?].obj
[?] == S (small model), M (medium), C (compact), L (large)

or if you own the extended version of FATS:

CL /Lp /A[?] /Ot tst1_eng.c fatsx.obj fats_mc[?].obj

 
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 OS/2 contains some test programs in the directory OS2_16I\C\MS that illustrate how you can use the FATS commands in your programs:

 tst1_eng.cTest program for MS-C Compiler
 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_MCS.obj, FATS_MCM.obj and FATS_MCL.obj


 

© 2008  GCS Software, Udo Gertz