Penguin
Annotated edit history of ferror(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 FERROR
2 !!!FERROR
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 ERRORS
7 CONFORMING TO
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 clearerr, feof, ferror, fileno - check and reset stream status
14 !!SYNOPSIS
15
16
17 __#include __
18
19
20 __void clearerr( FILE *__''stream''__);
21 int feof( FILE *__''stream''__);
22 int ferror( FILE *__''stream''__);
23 int fileno( FILE *__''stream''__);__
24 !!DESCRIPTION
25
26
27 The function __clearerr__ clears the end-of-file and
28 error indicators for the stream pointed to by
29 ''stream''.
30
31
32 The function __feof__ tests the end-of-file indicator for
33 the stream pointed to by ''stream'', returning non-zero
34 if it is set. The end-of-file indicator can only be cleared
35 by the function __clearerr__.
36
37
38 The function __ferror__ tests the error indicator for the
39 stream pointed to by ''stream'', returning non-zero if it
40 is set. The error indicator can only be reset by the
41 __clearerr__ function.
42
43
44 The function __fileno__ examines the argument
45 ''stream'' and returns its integer
46 descriptor.
47 !!ERRORS
48
49
50 These functions should not fail and do not set the external
51 variable ''errno''. (However, in case __fileno__
52 detects that its argument is not a valid stream, it must
53 return -1 and set ''errno'' to
54 __EBADF__.)
55 !!CONFORMING TO
56
57
58 The functions __clearerr__, __feof__, and
59 __ferror__ conform to X3.159-1989 (``ANSI
60 C'').
61 !!SEE ALSO
62
63
64 open(2), stdio(3)
65 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.