aboutsummaryrefslogtreecommitdiff
path: root/src/outstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/outstream.h')
-rw-r--r--src/outstream.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/outstream.h b/src/outstream.h
new file mode 100644
index 00000000..c6d25f50
--- /dev/null
+++ b/src/outstream.h
@@ -0,0 +1,53 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * date: Sat Mar 30 14:25:25 GMT 2002
10 *
11 * stream functions
12 */
13
14#ifndef _OUTSTREAM_H_
15#define _OUTSTREAM_H_
16
17#ifdef HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <stdio.h>
22#include <stdlib.h>
23#include <string.h>
24
25#ifndef WIN32
26#include <unistd.h>
27#endif
28
29#include "debug.h"
30#include "memory.h"
31#include "error.h"
32
33
34
35
36
37struct outstream {
38 FILE *fstream;
39 char *fname;
40 int todelete;
41 int wsize,rsize;
42 long wrotesize;
43 long varsize;
44 int flags;
45 struct outstream *next;
46};
47
48int __ILWS_add_outstream(struct outstream *, char *,FILE *,int);
49struct outstream *__ILWS_init_outstream_list();
50void __ILWS_delete_next_outstream(struct outstream *);
51void __ILWS_delete_outstream_list(struct outstream *);
52void __ILWS_delete_outstream(struct outstream *);
53#endif