Guardian C Library Calls Reference Manual

rewind
3-156 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
rewind
The rewind function resets the file-position indicator to the beginning of a C file opened
for binary ANSI I/O.
stream
denotes a C file opened for binary ANSI I/O.
Return Value
none.
Usage Guidelines
The rewind function might be implemented as a macro in a future release.
Example
This example resets the file-position indicator for the file $a.b.c to the beginning of the
file:
#include <stdioh>
FILE *fp;
fp = fopen("$a.b.c", "rb+");
/* ... */
rewind(fp);
#include <stdioh>
void rewind(FILE *stream);