fseek(3F) fseek(3F)
NAME
fseek, ftell - reposition a file on a logical unit
SYNOPSIS
integer function fseek (lunit, offset, from)
integer offset, from
integer function ftell (lunit)
DESCRIPTION
lunit must refer to an open logical unit. offset is an
offset in bytes relative to the position specified by from.
Valid values for from are:
0 beginning of the file;
1 the current position;
2 the end of the file.
The value returned by fseek will be 0 if successful, a sys-
tem error code otherwise. (See perror(3F))
ftell returns the current position of the file associated
with the specified logical unit lunit. The value is an
offset, in bytes, from the beginning of the file. If the
value returned is negative, it indicates an error and will
be the negation of the system error code. (See perror(3F))
FILES
/usr/lib/libU77.a
SEE ALSO
fseek(3S), perror(3F)
NOTES
When compiling source with the -Qocs option, an explicit
underscore needs to be added to the end of the routine
names.
Page 1 CX/UX Hf77 Fortran Reference Manual