FSEEK(3F) COMMAND REFERENCE FSEEK(3F) NAME fseek, ftell - reposition a file on a logical unit SYNOPSIS integer function fseek (lunit, offset, from) integer lunit, offset, from integer function ftell (lunit) integer lunit DESCRIPTION Fseek repositions a file accociated with a logical unit. 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 meaning beginning of the file 1 meaning the current position 2 meaning the end of the file The value returned by fseek will be 0 if successful, and is a system 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 f77 UTek system interface library. SEE ALSO fseek(3s) and perror(3f). Printed 5/12/88 1
%%index%% na:288,102; sy:390,1249; de:1639,1242; fi:2881,191; se:3072,155; %%index%%000000000098