Siebel eScript Language Reference > C Language Library Reference > Clib File Input and Output Methods >

Clib Set Cursor Position Method


The Clib Set Cursor Position method sets the position of the file cursor of an open file. It returns one of the following values:

  • If successful, then it returns the following value:

    0

  • If not successful, then it returns a nonzero value.
Format

Clib.fseek(filePointer, offset[, mode])

Table 144 describes the arguments for the Clib Set Cursor Position method.

Table 144. Arguments for the Clib Set Cursor Position Method
Argument
Description

filePointer

A file pointer that the Clib Open File method returns.

offset

The number of bytes that the Clib Set Cursor Position method moves the file cursor, starting with the value that you specify in the mode argument.

The cursor position in a text file might not correspond exactly with the byte offset in the file. A text file is a file that is not opened in binary mode.

mode

You can specify one of the following values:

  • SEEK_CUR. Relative to the current position of the file cursor.
  • SEEK_END. Relative to the end of the file.
  • SEEK_SET. Relative to the beginning of the file. If you do not specify the mode argument, then this method uses SEEK_SET.
Related Topics

For more information, see the following topics:

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.