GRASS GIS 8 Programmer's Manual
8.4.1(2025)-45ca3179ab
Loading...
Searching...
No Matches
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
19
G_rename_file
(
ps
.tempfile,
ps
.outfile);
20
}
PS_Graph_close
void PS_Graph_close(void)
Definition
psdriver/graph_close.c:9
ps
struct ps_state ps
Definition
psdriver/graph_set.c:26
output
void output(const char *fmt,...)
Definition
psdriver/graph_set.c:232
psdriver.h
G_rename_file
int G_rename_file(const char *oldname, const char *newname)
Rename a file or a directory in the filesystem.
Definition
rename.c:31
psdriver
graph_close.c
Generated on Sat Jun 21 2025 21:07:27 for GRASS GIS 8 Programmer's Manual by
1.13.2