Subversion Repositories Kolibri OS

Rev

Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 15... Line 15...
15
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16
 */
16
 */
Line 17... Line 17...
17
 
17
 
18
/*
18
/*
19
FUNCTION
19
FUNCTION
Line 20... Line 20...
20
<>---test for end of file
20
<>, <>---test for end of file
21
 
21
 
-
 
22
INDEX
-
 
23
	feof
Line 22... Line 24...
22
INDEX
24
INDEX
23
	feof
25
	feof_unlocked
24
 
26
 
Line -... Line 27...
-
 
27
ANSI_SYNOPSIS
-
 
28
	#include 
-
 
29
	int feof(FILE *<[fp]>);
-
 
30
 
25
ANSI_SYNOPSIS
31
	#define _BSD_SOURCE
26
	#include 
32
	#include 
27
	int feof(FILE *<[fp]>);
33
	int feof_unlocked(FILE *<[fp]>);
28
 
34
 
Line -... Line 35...
-
 
35
TRAD_SYNOPSIS
-
 
36
	#include 
-
 
37
	int feof(<[fp]>)
-
 
38
	FILE *<[fp]>;
-
 
39
 
29
TRAD_SYNOPSIS
40
	#define _BSD_SOURCE
30
	#include 
41
	#include 
31
	int feof(<[fp]>)
42
	int feof_unlocked(<[fp]>)
Line -... Line 43...
-
 
43
	FILE *<[fp]>;
-
 
44
 
-
 
45
DESCRIPTION
-
 
46
<> tests whether or not the end of the file identified by <[fp]>
-
 
47
has been reached.
-
 
48
 
-
 
49
<> is a non-thread-safe version of <>.
-
 
50
<> may only safely be used within a scope
-
 
51
protected by flockfile() (or ftrylockfile()) and funlockfile().  This
32
	FILE *<[fp]>;
52
function may safely be used in a multi-threaded program if and only
33
 
53
if they are called while the invoking thread owns the (FILE *)
34
DESCRIPTION
54
object, as is the case after a successful call to the flockfile() or
Line 35... Line 55...
35
<> tests whether or not the end of the file identified by <[fp]>
55
ftrylockfile() functions.  If threads are disabled, then
36
has been reached.
56
<> is equivalent to <>.
Line -... Line 57...
-
 
57
 
-
 
58
RETURNS
37
 
59
<> returns <<0>> if the end of file has not yet been reached; if
38
RETURNS
60
at end of file, the result is nonzero.
Line 39... Line 61...
39
<> returns <<0>> if the end of file has not yet been reached; if
61
 
40
at end of file, the result is nonzero.
62
PORTABILITY