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

Clib Restore Cursor Position Method


The Restore Cursor Position method sets the current file cursor to a position that you specify. You can use it to restore the file cursor to a position that the Clib Get Cursor Position returns. It returns one of the following values:

  • If successful, then it returns the following value:

    0

  • If not successful, then it returns nonzero and stores the error value in the errno property.
Format

Clib.fsetpos(filePointer, position)

Table 143 describes the arguments for the Restore Cursor Position method.

Table 143. Arguments for the Restore Cursor Position Method
Argument
Description

filePointer

A file pointer that the Clib Open File method returns.

position

The value that the Clib Get method returns.

Example

For an example, see Clib Get Cursor Position Method.

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.