BltIx4GetPrev


< Prev  TOC  Next >

TBLT_RETC TBLT_ENTRY BltIx4GetPrev(TBLT_KH *khPtr,
                                   VOID *keyBufferPtr,
                                   ULONG *recNoPtr,
                                   VOID *recordPtr);


 khPtr          I:index file control structure
 keyBufferPtr   IO:the previous key
 recNoPtr       IO:recNo of record data of the previous key
 recordPtr      O:record data of previous key

This routine gets the previous key and its recNo and its data record.

If the TBLT_DH.flags bit FLAGS_SKIP_DELETED_BIT, of khPtr->xbLinkPtr->flags, is set, this routine skips over all data records marked with a * (star) in the delete tag field (the first byte of the data record).

This routine will use the contents of keyBufferPtr and recNoPtr as a starting point if FLAGS_ATOMIC_BIT was used as the mode when the index file was opened.

Return: Non-zero indicates an error, otherwise the previous key/recNo/recordPtr is returned.


All content Copyright © 1999 Cornel Huth. All rights reserved.