[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdcinfo(
           signed int handle,
           SC_NTXINFO *info );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdcinfo gets the filename of the index file associated with handle,
   the index key type, the maximum index key length and number of decimal
   places (numeric keys), and the length of the index key expression via the
   structure SC_NTXINFO.

NOTES
   If you are using the value returned for the index expression to
   dynamically allocate memory to hold the key expression, be sure to add one
   to the length before allocation.

EXAMPLE
   #include <stdio.h>
   #include <softc.h>
   #include <sc_base.h>

   void main()
   {
     int ntx;
     SC_NTXINFO info;

     scdinit(20,0);
     if (scdcopenx(&ntx, "TOCNAME.NTX", SC_BUFFER) == SC_SUCCESS) {
       scdcinfo(ntx,&info);
       printf("File name = %s\n",info.fname);
       printf("Maximum key length = %d\n",info.keylen);
       printf("Number of decimals = %d\n,info.keydpl);
       printf("Key expression length = %d\n",info.exprlen);
       scdcclose(ntx);
     }
     scdterm();
   }

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