Update contrib.
3 * Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies).
8 * Copyright (c) 1990 The Regents of the University of California.
11 * Redistribution and use in source and binary forms are permitted
12 * provided that the above copyright notice and this paragraph are
13 * duplicated in all such forms and that any documentation,
14 * advertising materials, and other materials related to such
15 * distribution and use acknowledge that the software was developed
16 * by the University of California, Berkeley. The name of the
17 * University may not be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
26 <<ferror>>---test whether read/write error has occurred
33 int ferror(FILE *<[fp]>);
41 The <<stdio>> functions maintain an error indicator with each file
42 pointer <[fp]>, to record whether any read or write errors have
43 occurred on the associated file or stream.
44 Use <<ferror>> to query this indicator.
46 See <<clearerr>> to reset the error indicator.
49 <<ferror>> returns <<0>> if no errors have occurred; it returns a
50 nonzero value otherwise.
53 ANSI C requires <<ferror>>.
55 No supporting OS subroutines are required.
64 @return If there were no errors a 0 value is returned.
65 Otherwise a non-zero value is returned .
70 return __sferror (fp);