SA_AamUpdate


 

SA_AamUpdate updates the last text record in place. The aamdex file is also automatically updated.

int SA_AamUpdate ( SA_FH AamFH, u8 *Buffer, u32 BuffLen );

Parameters:
AamFH
The handle of the previously opened or prepared AAM file.
Buffer
The buffer filled by the operation.
BuffLen
The length of the input buffer {Buffer}.

Note the following:

  1. The record should not contain carriage returns and line feeds.

  2. Any record with a complete end of line sequence, CR/LF for DOS or LF for Linux, will lose all text in the record after that sequence on a subsequent record retrieval.

  3. A record longer than the reclen parameter specified in SA_AamPrep will be truncated.

  4. Function return codes are as follows:

  5.  

    Value

    Meaning

    n

    Number of bytes written.

    -nn

    Error as described in Sunaccess Errors

     



Sunaccess Reference SA_AamWrite SA_AamDelete