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
<>---clear file or stream error indicator
20
<>, <>---clear file or stream error indicator
21
 
21
 
-
 
22
INDEX
-
 
23
	clearerr
Line 22... Line 24...
22
INDEX
24
INDEX
23
	clearerr
25
	clearerr_unlocked
24
 
26
 
Line -... Line 27...
-
 
27
ANSI_SYNOPSIS
-
 
28
	#include 
-
 
29
	void clearerr(FILE *<[fp]>);
-
 
30
 
25
ANSI_SYNOPSIS
31
	#define _BSD_SOURCE
26
	#include 
32
	#include 
27
	void clearerr(FILE *<[fp]>);
33
	void clearerr_unlocked(FILE *<[fp]>);
28
 
34
 
Line -... Line 35...
-
 
35
TRAD_SYNOPSIS
-
 
36
	#include 
-
 
37
	void clearerr(<[fp]>)
-
 
38
	FILE *<[fp]>;
-
 
39
 
29
TRAD_SYNOPSIS
40
	#define _BSD_SOURCE
30
	#include 
41
	#include 
31
	void clearerr(<[fp]>)
42
	void clearerr_unlocked(<[fp]>)
32
	FILE *<[fp]>;
43
	FILE *<[fp]>;
33
 
44
 
Line 40... Line 51...
40
 
51
 
Line 41... Line 52...
41
Use <> to reset both of these indicators.
52
Use <> to reset both of these indicators.
Line -... Line 53...
-
 
53
 
-
 
54
See <> and <> to query the two indicators.
-
 
55
 
-
 
56
<> is a non-thread-safe version of <>.
-
 
57
<> may only safely be used within a scope
-
 
58
protected by flockfile() (or ftrylockfile()) and funlockfile().  This
-
 
59
function may safely be used in a multi-threaded program if and only
-
 
60
if they are called while the invoking thread owns the (FILE *)
Line 42... Line 61...
42
 
61
object, as is the case after a successful call to the flockfile() or
43
See <> and <> to query the two indicators.
62
ftrylockfile() functions.  If threads are disabled, then
Line 44... Line 63...
44
 
63
<> is equivalent to <>.
45
 
64
 
Line -... Line 65...
-
 
65
RETURNS
-
 
66
<> does not return a result.
46
RETURNS
67
 
47
<> does not return a result.
68
PORTABILITY
Line 48... Line 69...
48
 
69
ANSI C requires <>.
49
PORTABILITY
70