Crossfire Server, Trunk
output_file.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 1999-2014 Mark Wedel and the Crossfire Development Team
5  * Copyright (c) 1992 Frank Tore Johansen
6  *
7  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
8  * welcome to redistribute it under certain conditions. For details, please
9  * see COPYING and LICENSE.
10  *
11  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
12  */
13 
35 #ifndef OUTPUT_FILE_H
36 #define OUTPUT_FILE_H
37 
38 #include <stdio.h>
39 
40 
41 struct OutputFile
42 {
46  char *fname;
47 
52  char *fname_tmp;
53 
57  FILE *file;
58 };
59 
60 
76 FILE *of_open(OutputFile *of, const char *fname);
77 
87 int of_close(OutputFile *of);
88 
96 void of_cancel(OutputFile *of);
97 
98 #endif
OutputFile::fname
char * fname
Definition: output_file.h:46
OutputFile::file
FILE * file
Definition: output_file.h:57
of_close
int of_close(OutputFile *of)
Definition: output_file.cpp:61
OutputFile::fname_tmp
char * fname_tmp
Definition: output_file.h:52
of_cancel
void of_cancel(OutputFile *of)
Definition: output_file.cpp:89
of_open
FILE * of_open(OutputFile *of, const char *fname)
Definition: output_file.cpp:30
OutputFile
Definition: output_file.h:41