1rewind(3C)               Standard C Library Functions               rewind(3C)
2
3
4

NAME

6       rewind - reset file position indicator in a stream
7

SYNOPSIS

9       #include <stdio.h>
10
11       void rewind(FILE *stream);
12
13

DESCRIPTION

15       The call:
16
17         rewind(stream)
18
19
20
21       is equivalent to:
22
23         (void) fseek(stream, 0L, SEEK_SET)
24
25
26
27       except that rewind() also clears the error indicator.
28

RETURN VALUES

30       The rewind() function returns no value.
31

ERRORS

33       Refer to fseek(3C) with the exception of EINVAL which does not apply.
34

USAGE

36       Because  rewind()  does  not  return a value, an application wishing to
37       detect errors should clear errno, then call rewind(), and if  errno  is
38       non-zero, assume an error has occurred.
39

ATTRIBUTES

41       See attributes(5) for descriptions of the following attributes:
42
43
44
45
46       ┌─────────────────────────────┬─────────────────────────────┐
47       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
48       ├─────────────────────────────┼─────────────────────────────┤
49       │Interface Stability          │Standard                     │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │MT-Level                     │MT-Safe                      │
52       └─────────────────────────────┴─────────────────────────────┘
53

SEE ALSO

55       fseek(3C), attributes(5), standards(5)
56
57
58
59SunOS 5.11                        14 Aug 2002                       rewind(3C)
Impressum