SA_IsiReadKey


 

SA_IsiReadKey retrieves the key of last record read.

int SA_IsiReadKey ( SA_FH IsiFH, u8 *Buffer, u32 BufLen );

Parameters:
IsiFH
The handle of the previously opened or prepared ISAM file.
Buffer
The buffer filled by the operation.
BufLen
The length of the {Buffer}.

Note the following:

  1. If BuffLen is less that the actual key length, only the key is truncated.

  2. Function return codes are as follows:

  3.  

    Value

    Meaning

    nn

    Length of Key.

    0

    No record meet this key specification.

    -nn

    Error as described in Sunaccess Errors

Example:

 

long fh;

char buffer[2048];

 

SA_IsiReadKey(fh, buffer, sizeof(buffer);

 

 



Sunaccess Reference SA_IsiReadKP SA_IsiWrite