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

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdiinfo 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 and returns them in structure SC_IDXINFO.

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 idx;
     SC_IDXINFO info;

     scdinit(20,0);
     if (scdiopenx(&idx, "TOCNAME.IDX", SC_BUFFER) == SC_SUCCESS) {
       scdiinfo(idx,&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);
       scdiclose(idx);
     }
     scdterm();
   }

See Also: scdiopenx

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