[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdnkcur(
           signed int handle,
           void *key,
           signed long *recno );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdnkcur will return the key value key and data record number
   recno associated with the current key in the index file.

   The current key pointer must be set by a call to either scdnkfind,
   scdnktop, scdnkbot, scdnknext, or scdnkprev before
   calling scdnkcur.

NOTES
   The user must ensure that the buffer used to return the key is large
   enough to hold the entire key. The maximum length of the key can be
   determined via a call to scdninfo.

EXAMPLE
   #include <stdio.h>
   #include <softc.h>
   #include <sc_base.h>
   void main()
   {
     int ndx;
     char name[65], nam[65];
     long recno, recn;

     scdinit(20,0);
     if (scdnopenx(&ndx, "TOCNAME.NDX", SC_BUFFER) == SC_SUCCESS) {
       name[64] = 0;
       nam[64] = 0;
       scdnktop(ndx,name,&recno);
       scdnkcur(ndx,nam,&recn);
       printf("%s %s %ld %ld\n",name,nam,recno,recn);
       scdnclose(ndx);
     }
     scdterm();
   }

See Also: scdninfo scdnkfind scdnktop scdnkbot scdnknext scdnkprev
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson