                  Documentation for DBMS_C.ARC


This ARC file contains files that can be used to experiment with
the information presented in "C is for Customization & Clipper"
by Kent Porter.  The article appears in the September, 1988,
issue of "DBMS" Magazine on page 72.

Files Included:

	CLIP5.BAT		Batch file to compile C functions for use
                  with Clipper.  Used to compile with Microsoft
                  C 5.x.

	CLIPQC.BAT	   Similar to CLIP5.BAT, but used with Microsoft
                  Quick C 1.x.  (See limitations, below)

	BIGGEST.C		C source code for a function to find the
                  largest of up to three integers.  See Listing
                  3 from the article on page 76.

	BIGGEST.OBJ	   BIGGEST.C compiled with Quick C (See limita-
                  tions, below)

	BIGTEST.PRG	   Clipper source code to exercise BIGGEST.C.

	STDEV.C		   C source code for a function to find the
                  standard deviation of an array.  See Listing
                  4 from the article on page 78.

	CLOSING.PRG	   Clipper source code to exercise STDEV.C.
                  Requires STOCK.DBF, below.  See Listing 5
                  from the article on page 78.

	STOCK.DBF		DBF file for use with CLOSING.PRG.	


Compiling:

To compile the C programs, BIGGEST and STDEV, you must use a
Microsoft C compiler.  According to Nantucket, Quick C, version
1.x, can only be used for functions not using Floating Point
routines.  Since BIGGEST uses only integers, it can be success-
fully compiled with Quick C.  STDEV, however, makes use of
Floating Point routines and must be compiled with Microsoft C,
version 5.x.  The file BIGTEST.OBJ was compiled with Quick C.


Linking:

Mr. Porter suggests using PLINK86 to avoid duplicate definition
problems.  When using PLINK86 to LINK the files necessary for
BIGGEST.EXE, I found that I encountered the very problems I was
trying to avoid.  When I linked with Microsoft Link, version
3.61, I had no such problems - despite Mr. Porter's warnings.

To link BIGTEST:

	OBJs:	     BIGTEST, BIGGEST
	LIBs:	     CLIPPER, EXTEND, LLIBCE (from C)

To link CLOSING:

	OBJs:	     CLOSING, STDEV
	LIBs:	     CLIPPER, EXTEND, LLIBCE (from C)


Note:	    CLOSING and STDEV are untested, since I am using Quick
          C at this point.