Standard C Library Functions rewind(3C)
NAME
rewind - reset file position indicator in a stream
SYNOPSIS
#include
void rewind(FILE *stream);
DESCRIPTION
The call:rewind(stream)
is equivalent to:(void) fseek(stream, 0L, SEEK_SET)
except that rewind() also clears the error indicator.
RETURN VALUES
The rewind() function returns no value.
ERRORS
Refer to fseek(3C) with the exception of EINVAL which does not apply.USAGE
Because rewind() does not return a value, an application
wishing to detect errors should clear errno, then callrewind(), and if errno is non-zero, assume an error has
occurred.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 14 Aug 2002 1
Standard C Library Functions rewind(3C)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
fseek(3C), attributes(5), standards(5)SunOS 5.11 Last change: 14 Aug 2002 2