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

externC void sqlfseekc ( tsp00_Int4  fileHandle,
tsp00_Longint  distance,
tsp05_RteSeekKind_Param  whence,
tsp05_RteFileError *  ferr 

Moves the file pointer.

fileHandle [in]
distance [in]
whence [in] sp5vf_seek_begin: sqlfseek positions the file pointer at byte distance. The first byte is byte "0". sp5vf_seek_cur: sqlfseek advances the file pointer by distance bytes. sp5vf_seek_end: sqlfseek positions the file pointer at byte distance relative to the end of the file.
err [out] error information
A negative distance and reccount is allowed. If the device is not capable of seeking, the runtime environment sets err.fe_result to vf_noseek. There is no difference between the C (*c) and Pascal (*p) versions.

\ --------------------------------------- MF__ MOD__ (sqlfseek) \

Definition at line 3410 of file veo06.c.

Referenced by cn52ParamHistoryRecord::readFirst(), and cn52ParamHistoryRecord::readNext().

#undef MF__
#define MF__ MOD__"sqlfseekc"
    FileT* file;

    TRCIN_P (("handle %d, distance %ld  whence %d\n",
              fileHandle, distance, whence));
    eo06_clearError (ferr);
    if (OUT_OF_ENUM_INL (whence, sp5vf_seek_begin, sp5vf_seek_end)) {
        eo06_paramError (ferr, "whence");
    file = eo06_getPointer (&allFilesV, fileHandle);
    if (file != NULL) {
        eo06_SEEK_V (file, distance, whence, ferr);
    else {
        eo06_ferror (ferr, Invalid_Handle_ErrText);

Generated by  Doxygen 1.6.0   Back to index