programming.nbk: Home | Index | Next Page: Ruby | Previous Page: references


 rewind(FILE* stream)

Syntax

Description

Repositions the file pointer to the beginning of a stream. Sets the file pointer associated with the stream to the beginning of the file. A call to rewind is equivalent to:

except that unlike fseek, using rewind the error indicator is cleared. The next operation with the stream after a call to fseek can be either for input or output. This function is also useful for clearing the keyboard buffer (normally associated with stdin).

Parameters


programming.nbk: Home | Index | Next Page: Ruby | Previous Page: references


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time