GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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 <grass/gis.h>
7 #include "psdriver.h"
8 
9 void PS_Graph_close(void)
10 {
11  if (!ps.no_trailer) {
12  output("%%%%BeginTrailer\n");
13  output("END\n");
14  output("%%%%EndTrailer\n");
15  }
16 
17  fclose(ps.tempfp);
18 
20 }
void PS_Graph_close(void)
struct ps_state ps
int G_rename_file(const char *, const char *)
Rename a file or a directory in the filesystem.
Definition: rename.c:32
FILE * tempfp
Definition: psdriver.h:14
void output(const char *fmt,...)
const char * tempfile
Definition: psdriver.h:13
int no_trailer
Definition: psdriver.h:17
const char * outfile
Definition: psdriver.h:13