[Top]
Stdio
Stdio.Fd
|
Method Stdio.Fd()->seek()
- Method
seek
int Stdio.Fd()->seek(int pos)
int Stdio.Fd()->seek(int unit, int mult)
int Stdio.Fd()->seek(int unit, int mult, int add)
- Description
-
Seek to a specified offset in a file.
If mult or add are specified, pos will be claculated as
pos = unit*mult + add .
If pos is negative it will be relative to the start of the file,
otherwise it will be an absolute offset from the start of the file.
- Returns
Returns the new offset, or -1 on failure.
- Note
The arguments mult and add are considered obsolete, and
should not be used.
- See also
Stdio.Fd.tell
|