1FSEEK(3F)                                                            FSEEK(3F)
2
3
4

NAME

6       fseek, ftell - reposition a file on a logical unit
7

SYNOPSIS

9       integer function fseek (lunit, offset, from)
10       integer offset, from
11
12       integer function ftell (lunit)
13

DESCRIPTION

15       lunit must refer to an open logical unit.  offset is an offset in bytes
16       relative to the position specified by from.  Valid values for from are:
17
18            0 meaning `beginning of the file'
19            1 meaning `the current position'
20            2 meaning `the end of the file'
21
22       The value returned by fseek will be 0 if  successful,  a  system  error
23       code otherwise.  (See perror(3F))
24
25       Ftell  returns  the  current  position  of the file associated with the
26       specified logical unit. The value is an  offset,  in  bytes,  from  the
27       beginning of the file.  If the value returned is negative, it indicates
28       an error and will be the negation of the system error code.  (See  per‐
29       ror(3F))
30

FILES

32       /usr/lib/libU77.a
33

SEE ALSO

35       fseek(3S), perror(3F)
36
37
38
394.2 Berkeley Distribution        May 27, 1986                        FSEEK(3F)
Impressum