Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsrewind(3C)


NAME

 rewind - reset file position indicator in a stream

SYNOPSIS

 
#include <stdio.h>
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 call rewind(), and if errno is non-zero, assume an error has occurred.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

fseek(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 30 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.