COHERENT manpages

This page displays the COHERENT manpage for rewind() [Reset file pointer].

List of available manpages
Index


rewind() -- STDIO Function (libc)

Reset file pointer
#include <stdio.h>
void rewind(fp)
FILE *fp;

rewind() resets  the file pointer  to the beginning  of stream fp.  It is a
synonym for fseek(fp, 0L, 0).

Example

For an example of this routine, see the entry for fscanf().

See Also

fseek(),
ftell(),
libc,
lseek()
ANSI Standard, §7.9.9.5
POSIX Standard, §8.1

Notes

Release  4.2  of COHERENT  has  changed  rewind() to  conform  to the  ANSI
Standard.  Prior to release 4.2,  rewind() returned EOF if an error occurs,
and otherwise returned  zero.  rewind() now returns nothing.  Programs that
depend upon the  return value of rewind() should be  modified to conform to
this change.