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 scdninfo(
           int handle,
           SC_NDXINFO *info );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
    scdninfo gets the filename of the index file associated with handle,
    the index key type, the maximum index key length, and the length of the
    index key expression in the structure SC_NDXINFO.

NOTES
   If you are using the expression length 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 ndx;
     SC_NDXINFO info;

     scdinit(20,0);
     if (scdnopenx(&ndx, "TOCNAME.NDX", SC_BUFFER) == SC_SUCCESS) {
       scdninfo(ndx,&info);
       printf("File name = %s\n",info.fname);
       printf("Index key type = %c\n",info.keytype);
       printf("Maximum key length = %d\n",info.keylen);
       printf("Key expression length = %d\n",info.exprlen);
       scdnclose(ndx);
     }
     scdterm();
   }

See Also: scdnopenx

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