SA_TxtUpdate


 

SA_TxtUpdate updates the last text record read in place.

int SA_TxtUpdate (SA_FH TxtFH, u8 *Buffer, u32 BufLen );

Parameters:
TxtFH
The handle of the previously opened or prepared text file.
Buffer
The buffer written by the operation.
BufLen
The length of the {Buffer}.

Note the following:

  1. 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.

  2. A record longer than the {reclen} parameter specified in SA_TxtPrep will be truncated.

  3. Function return codes are as follows:

  4.  

    Value

    Meaning

    nn

    Number of bytes written

    -nn

    Error as described in Sunaccess Errors

     

     



Sunaccess Reference SA_TxtWrite SA_TxtDelete