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)
The following table describes the 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: