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

externC void sqlfopenEncodedc ( const char *  filename,
const tsp77encoding **  fileEncoding,
const tsp77encoding clientEncoding,
tsp05_RteFileMode_Param  fileMode,
tsp05_RteBufferingKind_Param  buffering,
tsp00_Int4 *  fileHandle,
tsp05_RteFileError *  ferr 

Opens operating system file for reading or writing using a character encoding.

filename [in] The name of the file to be opened. If the file is opened for reading, a name of "-" or "stdin" will use standard input. If the file is opened for writing, a name of "-" or "stdout" will use standard output, "stderr" will use standard error.
fileEncoding [in] - on read: the file is assumed to have this encoding. When fileEncoding is NULL, sqlfopenEncodedc will try to detect the encoding from the file content. Console input will be read according to the current locale. - on write: data is written using this encoding. Console output will be written according to the current locale.
clientEncoding [in] buffers specified by the client are assumed to have this encoding
fileMode [in] sp5vf_read: the file is read starting with the first byte sp5vf_write: the file is truncated (or created), writing starts at the first byte sp5vf_append: writing starts at the end of the file, the file is created if it does not exists.
buffering [in] sp5bk_buffered: sp5bk_unbuffered sp5bk_disksynced: the runtime environment must guarantee that the data is flushed to disk when sqlfopen returns
fileHandle [out] if the file could be opened, fhandle contains a value to be used in subsequent calls to sqlfread, sqlfwrite, sqlfseek, sqlfclose.
ferr [out] error information
Remarks for sqlfopoen[pc] apply.

Generated by  Doxygen 1.6.0   Back to index