Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

externC void sqlfreadc ( tsp00_Int4  fileHandle,
void *  buf,
tsp00_Longint  bufSize,
tsp00_Longint *  outLen,
tsp05_RteFileError *  ferr 
)

Reads data from the specified file.

Parameters:
fhandle [in] the file to read from
buf [out] the data will be read into this buffer
bufsize [in] the size of buffer
outlen [out] the number of bytes actually read
err [out] error information
When the file was opened as sp5vf_binary, sqlfreadp and sqlfreadp read at most bufsize bytes info buf. Fewer bytes may be transferred if the end of the file is reached, but err.sp5fe_result will still be set to vf_ok. [sqlfopenc] When the file was opened as sp5vf_text, sqlfreadc reads at most (bufsize - 1) characters into buf up to the next end of line marker and ends the data with a zero byte. The end of line marker is not transferred. If buf is to small to hold the line, then err.sp5fe_warning is set to sp5vwf_no_eol_found. The rest of the line can be read with a subsequent sqlfreadc. [sqlfopenp] When the file was opened as sp5vf_text, sqlfreadp reads at most bufsize characters into buf up to the next end of line marker. The end of line marker is not transferred. If buf is to small to hold the line, then err.sp5fe_warning is set to sp5vwf_no_eol_found. The rest of the line can be read with a subsequent sqlfreadp.

Definition at line 3321 of file veo06.c.

References eo06_sqlfread().

Referenced by cn54DBMTgz::compressDirect(), Tools_Properties::load(), cn52ParamHistoryRecord::readFirst(), DBMSrvBLabel_Label::readLabelFrom(), and cn52ParamHistoryRecord::readNext().

{
#undef MF__
#define MF__ MOD__"sqlfreadc"
    TRCIN;
    eo06_sqlfread (fileHandle, buf, bufSize, outLen, ferr, TRUE);
    TRCOUT;
}


Generated by  Doxygen 1.6.0   Back to index