rewind()

reposition file pointer to beginning of file 

Function


SYNOPSIS

#include <stdio.h>

void rewind(FILE *stream);


DESCRIPTION

The rewind() function repositions the file pointer of stream to the beginning of the file. It is equivalent to

fseek(stream, 0L, SEEK_SET);

except that rewind() clears the error indicator of stream.


PARAMETERS

stream 

Points to the file stream to be rewound.


RETURN VALUES

None.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
fseek(), ftell(), ungetc()


PTC MKS Toolkit 10.5 Documentation Build 40.