[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdiinfo(
           signed 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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson