BltIx4EqualOrLesserKey


< Prev  TOC  Next >

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


 khPtr          I:index file control structure
 keyBufferPtr   IO:key to find/key found
 recNoPtr       IO:recNo to match (or 0)/recNo of key found

This routine finds either the exact match for the key in keyBufferPtr and the recNo in recNoPtr (if not zero, the first key match otherwise), or the previous, lesser key.

The previous lesser key is the key that would have preceded the exact key to find had that key been in the index file.

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


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