Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SoftC Database Library v2.1 Guide - usage http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   int scdinit(
           int files,
           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.  This implies that files cannot be less
   than five.

   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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson