BltIx4GetNext


< Prev  TOC  Next >

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


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

This routine gets the next 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 next key/recNo/recordPtr is returned.


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