Query: rewind
OS: opensolaris
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
rewind(3C) Standard C Library Functions rewind(3C)NAMErewind - reset file position indicator in a streamSYNOPSIS#include <stdio.h> void rewind(FILE *stream);DESCRIPTIONThe call: rewind(stream) is equivalent to: (void) fseek(stream, 0L, SEEK_SET) except that rewind() also clears the error indicator.RETURN VALUESThe rewind() function returns no value.ERRORSRefer to fseek(3C) with the exception of EINVAL which does not apply.USAGEBecause rewind() does not return a value, an application wishing to detect errors should clear errno, then call rewind(), and if errno is non-zero, assume an error has occurred.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOfseek(3C), attributes(5), standards(5) SunOS 5.11 14 Aug 2002 rewind(3C)
| Related Man Pages | 
|---|
| rewind(3c) - opensolaris | 
| fgetpos(3) - redhat | 
| fseek(3) - x11r4 | 
| fgetpos(3) - v7 | 
| ftell(3) - minix | 
| Similar Topics in the Unix Linux Community | 
|---|
| error when using fseek() function | 
| Backup Script | 
| What is the function of rewind()? | 
| Problem with fgets and rewind function .. | 
| Understanding 2>&1 |