annotate lib/fseterr.h @ 8387:1ce2ba0b442c

New module 'fseterr'.
author Bruno Haible <bruno@clisp.org>
date Fri, 09 Mar 2007 00:53:49 +0000
parents
children bbbbbf4cd1c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8387
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Set the error indicator of a stream.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2007 Free Software Foundation, Inc.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 2, or (at your option)
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 any later version.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License along
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 with this program; if not, write to the Free Software Foundation,
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef _FSETERR_H
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define _FSETERR_H
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <stdio.h>
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #ifdef __cplusplus
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 extern "C" {
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #endif
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* Set the error indicator of the stream FP.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 The "error indicator" is set when an I/O operation on the stream fails, and
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 is cleared (together with the "end-of-file" indicator) by clearerr (FP). */
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 extern void fseterr (FILE *fp);
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #ifdef __cplusplus
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 }
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #endif
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 #endif /* _FSETERR_H */