FGETPOS - get current read/write position.

(ANSI Standard)

Usage:

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

Where:

FILE *stream;
indicates the stream whose position you wish to determine.
fpos_t *pos;
points to a location where "fgetpos" can store the position information.
int stat;
is zero if the read/write position is successfully determined, and non-zero otherwise.

Description:

The "fgetpos" function notes the current read/write position of stream and stores this information in the object indicated by "pos". Information obtained through "fgetpos" can be used by the "fsetpos" function to return to this same position.

In the current implementation, "fgetpos" is just a dummy that always returns a failure status. It is included here for compatibility with the proposed ANSI standard.

See Also:

expl c lib fsetpos

expl c lib ftell

Copyright © 1996, Thinkage Ltd.