BltIx4EqualOrGreaterKey


< Prev  TOC  Next >

TBLT_RETC TBLT_ENTRY BltIx4EqualOrGreaterKey(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 next, greater key.

The next greater key is the key that would have followed 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.