#include <stdio.h>int fgetpos(FILE *stream, fpos_t *position);

For the specified stream, the fgetpos( ) function stores the current value of the file position indicator in the object pointed to by position. The object pointed to by position must be of type fpos_t. The value stored there is useful only in a subsequent call to fsetpos( ).

In C99, both stream and position are qualified by restrict.

If an error occurs, fgetpos( ) returns nonzero; otherwise, it returns zero.

Related functions are fsetpos( ), fseek( ), and ftell( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net