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 scdnexpr(
           int handle,
           char *keyexpr );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdnexpr 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 scdninfo) 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 ndx;
     char buffer[512];

     scdinit(20,0);
     if (scdnopenx(&ndx, "TOCNAME.NDX", SC_BUFFER) == SC_SUCCESS) {
       scdnexpr(ndx,buffer);
       printf("key expression = %s",buffer);
       scdnclose(ndx);
     }
     scdterm();
   }

See Also: scdninfo

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