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