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

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdckcur 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 scdckfind,
   scdcktop, scdckbot, scdcknext, or scdckprev before calling
   scdckcur.

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 scdcinfo.

EXAMPLE
   #include <stdio.h>
   #include <softc.h>
   #include <sc_base.h>

   void main()
   {
     int ntx;
     char date[17], dat[17];
     long recno, recn;

     scdinit(20,0);
     if (scdcopenx(&ntx, "TOCDATE.NTX", SC_BUFFER) == SC_SUCCESS) {
       date[16] = 0;
       dat[16] = 0;
       scdcktop(ntx,date,&recn);
       scdckcur(ntx,dat,&recno);
       printf("%s %s %ld %ld\n", date,dat,recno,recn);
       scdcclose(ntx);
     }
     scdterm();
   }

See Also: scdcinfo scdckfind scdcktop scdckbot scdcknext scdckprev
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson