Mono Class Library: Mono.Unix.Native.Stdlib Overview | MembersMono.Unix.Native.Stdlib.rewind Method |
Set the file position indicator of the FILE stream to the beginning of the file. [Edit]
|
- stream
- FILE stream to set file position indicator to the beginning of the file. [Edit]
Documentation for this section has not yet been entered. [Edit]
The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent to:
Stdlib.fseek(stream, 0, SeekFlags.SEEK_SET)
except that the error indicator for the stream is also cleared (see Stdlib.clearerr(3)).
Since rewind() does not return a value, an application wishing to detect errors should call Stdlib.SetLastError((Mono.Unix.Native.Error)0), then call rewind(), and if Stdlib.GetLastError is non-zero, assume an error has occurred.
[Edit]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0