FSETPOS - seek to new read/write position.

(ANSI Standard)


#include <stdio.h>
stat = fsetpos(stream,pos);


FILE *stream;
indicates the stream that you wish to reposition.
const fpos_t *pos;
points to positioning information as returned by "fgetpos".
int stat;
is zero if "fsetpos" is successful, and non-zero otherwise.


The "fsetpos" function moves the read/write position of stream to the location indicated by the information in "pos". The information in "pos" must have been obtained by a previous call to "fgetpos".


You cannot perform "fsetpos" operations on terminals or on SYSOUT.

"fsetpos" does not work on input streams which are concatenations of several input files.

See Also:

expl c lib fgetpos

expl nsc lib fgetpos

expl c lib fseek

expl nsc lib fseek

Copyright © 1996, Thinkage Ltd.