ftell

fsetpos

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

The fsetpos( ) function moves the file position indicator to the location specified by the object pointed to by position. This value must have
been previously obtained through a call to fgetpos( ). After fsetpos( )
is executed, the end-of-file indicator is reset. Also, any previous call to ungetc( ) is nullified.

If fsetpos( ) fails, it returns nonzero. If it is successful, it returns zero.

Related functions are fgetpos( ), 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