FSEEK(3S) COMMAND REFERENCE FSEEK(3S)
NAME
fseek, ftell, rewind - reposition a stream
SYNOPSIS
#include <stdio.h>
fseek(stream, offset, ptrname)
FILE *stream;
long offset;
long ftell(stream)
FILE *stream;
rewind(stream)
DESCRIPTION
Fseek sets the position of the next input or output
operation on the stream. The new position is at the signed
distance offset bytes from the beginning, the current
position, or the end of the file, determined by whether
ptrname has the value 0, 1, or 2.
Fseek undoes any effects of ungetc(3s).
Ftell returns the current value of the offset relative to
the beginning of the file associated with the named stream.
It is measured in bytes on UTek; on some other systems it is
a magic cookie, and the only foolproof way to obtain an
offset for fseek.
Rewind (stream) is equivalent to fseek (stream, 0L, 0).
DIAGNOSTICS
Fseek returns -1 for improper seeks.
SEE ALSO
lseek(2), fopen(3s).
Printed 10/17/86 1
%%index%%
na:72,78;
sy:150,887;
de:1037,1035;
di:2072,151;
se:2223,118;
%%index%%000000000095