[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
USAGE
signed int scdiexpr(
signed int handle,
signed char *keyexpr );
PROTOTYPE IN
sc_base.h
DESCRIPTION
scdiexpr gets the index key expression and returns it as an ASCIIZ
string into a user supplied buffer keyexpr. The user must ensure that
the buffer is large enough (the key expression length can be determined
via a call to scdiinfo) to hold the entire key expression.
NOTES
A NULL byte will be appended to the end of the expression string returned.
If you are dynamically allocating memory be sure to make the buffer large
enough.
EXAMPLE
#include <stdio.h>
#include <softc.h>
#include <sc_base.h>
void main()
{
int idx;
char buffer[512];
scdinit(20,0);
if (scdiopenx(&idx, "TOCNAME.IDX", SC_BUFFER) == SC_SUCCESS) {
scdiexpr(idx,buffer);
printf("key expression = %s",buffer);
scdiclose(idx);
}
scdterm();
}
See Also:
scdiinfo
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson