GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71917
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
psdriver/graph_close.c
Go to the documentation of this file.
1 /*
2  * Close down the graphics processing. This gets called only at driver
3  * termination time.
4  */
5 
6 #include "psdriver.h"
7 
8 void PS_Graph_close(void)
9 {
10  if (!ps.no_trailer) {
11  output("%%%%BeginTrailer\n");
12  output("END\n");
13  output("%%%%EndTrailer\n");
14  }
15 
16  fclose(ps.outfp);
17 }
void PS_Graph_close(void)
struct ps_state ps
FILE * outfp
Definition: psdriver.h:13
fclose(fd)
void output(const char *fmt,...)
int no_trailer
Definition: psdriver.h:16