SEEK(3F) UNIX Programmer's Manual SEEK(3F) NAME seek, tell - reposition a file SYNTAX integer fileid, whence integer*4 fileid, offset call seek(fileid, offset, whence) integer fileid integer*4 pos, tell pos = tell(fileid) DESCRIPTION _S_e_e_k sets the position of the next input or output operation on the file associated with _f_i_l_e_i_d. The new position is at the signed distance _o_f_f_s_e_t bytes from the beginning, the current position, or the end of the file, according as _w_h_e_n_c_e has the value 0, 1, or 2. _T_e_l_l returns the current value of the offset (in bytes) relative to the beginning of the file associated with the named _f_i_l_e_i_d. SEE ALSO open(3F) AUTHOR Bruce Julian, U.S. Geological Survey, Menlo Park, California Printed 5/17/83 1