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 scdnindex(
           int datafile,
           char *filename,
           int keytype,
           char *keyexpr,
           int keylen );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdnindex will create and build an dBASE index file. A blank file will
   be created using filename, keytype, keyexpr, and keylen.
   The resultant file will be opened, and the datafile will be read
   sequentially building keys from each data record. The index file will be
   closed at exit. The datafile must be open prior to the function call.

EXAMPLE
   #include <sc_base.h>

   void main()
   {
     int dbf;

     scdinit(20,0);
     if (scddopenx(&dbf, "TOC.DBF", SC_BUFFER) == SC_SUCCESS) {
       scdnindex(dbf, "TOCNAME.NDX", SC_CKEY, "NAME", 64);
       scddclose(dbf);
     }
     scdterm();
   }

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