rewind man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

REWIND(3C)							    REWIND(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 TYPE    │ ATTRIBUTE VALUE │
       ├────────────────────┼─────────────────┤
       │Interface Stability │ Standard	      │
       ├────────────────────┼─────────────────┤
       │MT-Level	    │ MT-Safe	      │
       └────────────────────┴─────────────────┘

SEE ALSO
       fseek(3C), attributes(5), standards(5)

				 Aug 14, 2002			    REWIND(3C)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net