[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdinit(
           signed int files,
           signed int command );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdinit should be called once and only once at the beginning of the
   program. The maximum number of simultaneously open files is passed.
   This function sets up the SoftC Database Library file manager
   environment for processing. Memory will be allocated for a variety of
   control structures used internally by the file manager.

   If the command switch SC_USEXHNDLS is passed, more than 20 (the
   default) open files per program is allowed. A larger handle table will
   be allocated and the DOS PSP will be changed.

NOTES
   The first five file handles per program are taken up with printer,
   console, auxiliary port, etc. leaving only 15 file handles available per
   program in the default state.

   Neither Microsoft C 5.x/6.0 nor Turbo C 2.0 support more than 20 open
   files. In other words if you want to open more than 20 files you have to
   go directly to DOS.

EXAMPLE
   #include <sc_base.h>

   void main()
   {
     scdinit(20,0);
     scdterm();
   }

See Also: scdterm
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson